﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using ConsolidationTool.Common.Entities;
using System.Collections.Generic;
using ConsolidationTool.Common;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using ConsolidationTool.WebParts.ControlTemplates;

using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Script.Serialization;

namespace ConsolidationTool.WebParts.Layouts.CReport.Brochure
{
    public partial class P6APL : FSReportBase
    { 
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                InitBaseInfo();
      
        }
        public override ControlTemplates.CommonEntitySelector TopSelector
        {
            get
            {
                return commonEntitySelector as ControlTemplates.CommonEntitySelector;
            }
        }

        public override Repeater BaseGAP
        {
            get
            {
                return RPGAP;
            }
        }

        public override Repeater BaseReport
        {
            get
            {
                return EQRepeater;
            }
        }

        public override void BeforLoad()
        {
            base.BeforLoad();

            if (CEntity != null)
            {
                CEntity.ReportTemplateName = "P6PL";
                CEntity.TableRow = "B|12";
                CEntity.GAPRow = "C|118"; 
            }
        }

        void InitBaseInfo()
        {
            // lbCompanyName.Text = Constants.Company_Name;
            TopSelector.yearTextBox.Text = Common.BusinessService.GetConfiguration(Constants.Flash_Input_Year);
            TopSelector.monthTextBox.Text = Common.BusinessService.GetConfiguration(Constants.Flash_Input_Month);


            switch (TopSelector.monthTextBox.Text)
            {
                case "1":
                    LabelCurrentMonth.Text = "January " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD January " + TopSelector.yearTextBox.Text;
                    break;
                case "2":
                    LabelCurrentMonth.Text = "February " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD February " + TopSelector.yearTextBox.Text;
                    break;
                case "3":
                    LabelCurrentMonth.Text = "March " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD March " + TopSelector.yearTextBox.Text;
                    break;
                case "4":
                    LabelCurrentMonth.Text = "April " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD April " + TopSelector.yearTextBox.Text;
                    break;
                case "5":
                    LabelCurrentMonth.Text = "May " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD May " + TopSelector.yearTextBox.Text;
                    break;
                case "6":
                    LabelCurrentMonth.Text = "June " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD June " + TopSelector.yearTextBox.Text;
                    break;
                case "7":
                    LabelCurrentMonth.Text = "July " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD July " + TopSelector.yearTextBox.Text;
                    break;
                case "8":
                    LabelCurrentMonth.Text = "August " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD August " + TopSelector.yearTextBox.Text;
                    break;
                case "9":
                    LabelCurrentMonth.Text = "September " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD September " + TopSelector.yearTextBox.Text;
                    break;
                case "10":
                    LabelCurrentMonth.Text = "October " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD October " + TopSelector.yearTextBox.Text;
                    break;
                case "11":
                    LabelCurrentMonth.Text = "November " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD November " + TopSelector.yearTextBox.Text;
                    break;
                case "12":
                    LabelCurrentMonth.Text = "December " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD December " + TopSelector.yearTextBox.Text;
                    break;
                default:
                    break;
            }
        }
 
        public override void GenerateReport_Click(object sender, EventArgs e)
        { 
            base.GenerateReport_Click(sender, e);

            switch (TopSelector.monthTextBox.Text)
            {
                case "1":
                    LabelCurrentMonth.Text = "January " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD January " + TopSelector.yearTextBox.Text;
                    break;
                case "2":
                    LabelCurrentMonth.Text = "February " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD February " + TopSelector.yearTextBox.Text;
                    break;
                case "3":
                    LabelCurrentMonth.Text = "March " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD March " + TopSelector.yearTextBox.Text;
                    break;
                case "4":
                    LabelCurrentMonth.Text = "April " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD April " + TopSelector.yearTextBox.Text;
                    break;
                case "5":
                    LabelCurrentMonth.Text = "May " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD May " + TopSelector.yearTextBox.Text;
                    break;
                case "6":
                    LabelCurrentMonth.Text = "June " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD June " + TopSelector.yearTextBox.Text;
                    break;
                case "7":
                    LabelCurrentMonth.Text = "July " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD July " + TopSelector.yearTextBox.Text;
                    break;
                case "8":
                    LabelCurrentMonth.Text = "August " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD August " + TopSelector.yearTextBox.Text;
                    break;
                case "9":
                    LabelCurrentMonth.Text = "September " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD September " + TopSelector.yearTextBox.Text;
                    break;
                case "10":
                    LabelCurrentMonth.Text = "October " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD October " + TopSelector.yearTextBox.Text;
                    break;
                case "11":
                    LabelCurrentMonth.Text = "November " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD November " + TopSelector.yearTextBox.Text;
                    break;
                case "12":
                    LabelCurrentMonth.Text = "December " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD December " + TopSelector.yearTextBox.Text;
                    break;
                default:
                    break;
            }

            //邦定current月数据
            BindLastMonth(TopSelector.drpEntity.SelectedValue, TopSelector.yearTextBox.Text, TopSelector.monthTextBox.Text);

        }

        public override void ExportReport_Click(object sender, EventArgs e)
        {
            AdditionOutput.Add("B9",  CEntity.CM);
            AdditionOutput.Add("I9",  CEntity.YTDM);
            AdditionOutput.Add("A12"	,	TitleFix("Tonnages (_Tonnage_) (Head Products Manufactured)                                    "));
            AdditionOutput.Add("A13"	,	TitleFix("Tonnages (_Tonnage_) (First Products Manufactured)                                   "));
            AdditionOutput.Add("A14"	,	TitleFix("Global Sales (K_Currency_)                                                            "));
            AdditionOutput.Add("A15"	,	TitleFix("Sales (K_Currency_) (All manufactured products)                                       "));
            AdditionOutput.Add("A16"	,	TitleFix("Sales (K_Currency_) (Head products manufactured)                                      "));
            AdditionOutput.Add("A17"	,	TitleFix("Sales (K_Currency_) (First Products manufactured)                                     "));
            AdditionOutput.Add("A18"	,	TitleFix("Variable Margin  (K_Currency_)  (All manuf. products)                                 "));
            AdditionOutput.Add("A20"	,	TitleFix("VM  / SALES (%)                                                                       "));
            AdditionOutput.Add("A22"	,	TitleFix("VM (K_Currency_) (All traded products)                                                "));
            AdditionOutput.Add("A23"	,	TitleFix("Fixed Operating Costs excl. Depreciation (K_Currency_) (industrial, logistics, sales) "));
            AdditionOutput.Add("A24"	,	TitleFix("Commercial Contribution (CC) (K_Currency_)                                            "));
            AdditionOutput.Add("A26"	,	TitleFix("Operating depreciation (K_Currency_)(industrial, logistics, sales)                    "));
            AdditionOutput.Add("A27"	,	TitleFix("Commercial Margin (CM) (K_Currency_)                                                  "));
            AdditionOutput.Add("A29"	,	TitleFix("CM  / (Sales + VM traded) (%)                                                         "));
            AdditionOutput.Add("A31"	,	TitleFix("Admin. Excl. Depreciation (K_Currency_)                                               "));
            AdditionOutput.Add("A32"	,	TitleFix("R&D excl. Depreciation (K_Currency_)                                                  "));
            AdditionOutput.Add("A33"	,	TitleFix("Economic EBITDA (K_Currency_)                                                         "));
            AdditionOutput.Add("A35"	,	TitleFix("Economic EBITDA  / (Sales + VM traded) (%)                                            "));
            AdditionOutput.Add("A37"	,	TitleFix("Depreciation : operations, R&D, Adm. (K_Currency_)                                    "));
            AdditionOutput.Add("A38"	,	TitleFix("Management Operating profit (MOP) (K_Currency_)                                       "));
            AdditionOutput.Add("A40"	,	TitleFix("OP / (Sales + VM traded) (%)                                                          "));
            AdditionOutput.Add("A42"	,	TitleFix("Transition gains and charges (K_Currency_)                                            "));
            AdditionOutput.Add("A43"	,	TitleFix("Other operating income and charges (K_Currency_)                                      "));
            AdditionOutput.Add("A44"	,	TitleFix("Operating Income (OI) (K_Currency_)                                                   "));
            AdditionOutput.Add("A46"	,	TitleFix("Financial expenses, net (K_Currency_)                                                 "));
            AdditionOutput.Add("A47"	,	TitleFix("Income Tax expenses (K_Currency_)                                                     "));
            AdditionOutput.Add("A48"	,	TitleFix("Net Income (NI) (K_Currency_)                                                         "));
            AdditionOutput.Add("A50"	,	TitleFix("NI / (Sales + VM Trade) (%)                                                           "));
            AdditionOutput.Add("A52", TitleFix("Net Income Before Amort. & Depreciation (K_Currency_)                                 "));

            base.ExportReport_Click(sender, e);


            return;

            P6PL Label01 = null;
            Label01 = new P6PL();
            Label01.row01 = Label01_Date1.Text;
            Label01.row02 = Label01_Date2.Text;
            Label01.row03 = Label01_Date3.Text;
            Label01.row04 = Label01_Date4.Text;
            Label01.row05 = Label01_Date5.Text;
            Label01.row06 = Label01_Date6.Text;
            Label01.row07 = Label01_Date7.Text;
            Label01.row08 = Label01_Date8.Text;
            Label01.row09 = Label01_Date9.Text;
            Label01.row10 = Label01_Date10.Text;
            Label01.row11 = Label01_Date11.Text;
            Label01.row12 = Label01_Date12.Text;
            Label01.row13 = Label01_Date13.Text;

            P6PL Graph01 = null;
            Graph01 = new P6PL();
            Graph01.row01 = Graph01_Day1.Text;
            Graph01.row02 = Graph01_Day2.Text;
            Graph01.row03 = Graph01_Day3.Text;
            Graph01.row04 = Graph01_Day4.Text;
            Graph01.row05 = Graph01_Day5.Text;
            Graph01.row06 = Graph01_Day6.Text;
            Graph01.row07 = Graph01_Day7.Text;
            Graph01.row08 = Graph01_Day8.Text;
            Graph01.row09 = Graph01_Day9.Text;
            Graph01.row10 = Graph01_Day10.Text;
            Graph01.row11 = Graph01_Day11.Text;
            Graph01.row12 = Graph01_Day12.Text;
            Graph01.row13 = Graph01_Day13.Text;

            P6PL Graph02 = null;
            Graph02 = new P6PL();
            Graph02.row01 = Graph02_Day1.Text;
            Graph02.row02 = Graph02_Day2.Text;
            Graph02.row03 = Graph02_Day3.Text;
            Graph02.row04 = Graph02_Day4.Text;
            Graph02.row05 = Graph02_Day5.Text;
            Graph02.row06 = Graph02_Day6.Text;
            Graph02.row07 = Graph02_Day7.Text;
            Graph02.row08 = Graph02_Day8.Text;
            Graph02.row09 = Graph02_Day9.Text;
            Graph02.row10 = Graph02_Day10.Text;
            Graph02.row11 = Graph02_Day11.Text;
            Graph02.row12 = Graph02_Day12.Text;
            Graph02.row13 = Graph02_Day13.Text;

            P6PL Graph03 = null;
            Graph03 = new P6PL();
            Graph03.row01 = Graph03_Day1.Text;
            Graph03.row02 = Graph03_Day2.Text;
            Graph03.row03 = Graph03_Day3.Text;
            Graph03.row04 = Graph03_Day4.Text;
            Graph03.row05 = Graph03_Day5.Text;
            Graph03.row06 = Graph03_Day6.Text;
            Graph03.row07 = Graph03_Day7.Text;
            Graph03.row08 = Graph03_Day8.Text;
            Graph03.row09 = Graph03_Day9.Text;
            Graph03.row10 = Graph03_Day10.Text;
            Graph03.row11 = Graph03_Day11.Text;
            Graph03.row12 = Graph03_Day12.Text;
            Graph03.row13 = Graph03_Day13.Text;

            P6PL Graph04 = null;
            Graph04 = new P6PL();
            Graph04.row01 = Graph04_Day1.Text;
            Graph04.row02 = Graph04_Day2.Text;
            Graph04.row03 = Graph04_Day3.Text;
            Graph04.row04 = Graph04_Day4.Text;
            Graph04.row05 = Graph04_Day5.Text;
            Graph04.row06 = Graph04_Day6.Text;
            Graph04.row07 = Graph04_Day7.Text;
            Graph04.row08 = Graph04_Day8.Text;
            Graph04.row09 = Graph04_Day9.Text;
            Graph04.row10 = Graph04_Day10.Text;
            Graph04.row11 = Graph04_Day11.Text;
            Graph04.row12 = Graph04_Day12.Text;
            Graph04.row13 = Graph04_Day13.Text;

            P6PL Graph05 = null;
            Graph05 = new P6PL();
            Graph05.row01 = Graph05_Day1.Text;
            Graph05.row02 = Graph05_Day2.Text;
            Graph05.row03 = Graph05_Day3.Text;
            Graph05.row04 = Graph05_Day4.Text;
            Graph05.row05 = Graph05_Day5.Text;
            Graph05.row06 = Graph05_Day6.Text;
            Graph05.row07 = Graph05_Day7.Text;
            Graph05.row08 = Graph05_Day8.Text;
            Graph05.row09 = Graph05_Day9.Text;
            Graph05.row10 = Graph05_Day10.Text;
            Graph05.row11 = Graph05_Day11.Text;
            Graph05.row12 = Graph05_Day12.Text;
            Graph05.row13 = Graph05_Day13.Text;

            P6PL Graph06 = null;
            Graph06 = new P6PL();
            Graph06.row01 = Graph06_Day1.Text;
            Graph06.row02 = Graph06_Day2.Text;
            Graph06.row03 = Graph06_Day3.Text;
            Graph06.row04 = Graph06_Day4.Text;
            Graph06.row05 = Graph06_Day5.Text;
            Graph06.row06 = Graph06_Day6.Text;
            Graph06.row07 = Graph06_Day7.Text;
            Graph06.row08 = Graph06_Day8.Text;
            Graph06.row09 = Graph06_Day9.Text;
            Graph06.row10 = Graph06_Day10.Text;
            Graph06.row11 = Graph06_Day11.Text;
            Graph06.row12 = Graph06_Day12.Text;
            Graph06.row13 = Graph06_Day13.Text;

            P6PL Graph07 = null;
            Graph07 = new P6PL();
            Graph07.row01 = Graph07_Day1.Text;
            Graph07.row02 = Graph07_Day2.Text;
            Graph07.row03 = Graph07_Day3.Text;
            Graph07.row04 = Graph07_Day4.Text;
            Graph07.row05 = Graph07_Day5.Text;
            Graph07.row06 = Graph07_Day6.Text;
            Graph07.row07 = Graph07_Day7.Text;
            Graph07.row08 = Graph07_Day8.Text;
            Graph07.row09 = Graph07_Day9.Text;
            Graph07.row10 = Graph07_Day10.Text;
            Graph07.row11 = Graph07_Day11.Text;
            Graph07.row12 = Graph07_Day12.Text;
            Graph07.row13 = Graph07_Day13.Text;

            P6PL Graph08 = null;
            Graph08 = new P6PL();
            Graph08.row01 = Graph08_Day1.Text;
            Graph08.row02 = Graph08_Day2.Text;
            Graph08.row03 = Graph08_Day3.Text;
            Graph08.row04 = Graph08_Day4.Text;
            Graph08.row05 = Graph08_Day5.Text;
            Graph08.row06 = Graph08_Day6.Text;
            Graph08.row07 = Graph08_Day7.Text;
            Graph08.row08 = Graph08_Day8.Text;
            Graph08.row09 = Graph08_Day9.Text;
            Graph08.row10 = Graph08_Day10.Text;
            Graph08.row11 = Graph08_Day11.Text;
            Graph08.row12 = Graph08_Day12.Text;
            Graph08.row13 = Graph08_Day13.Text;

            P6PL Graph09 = null;
            Graph09 = new P6PL();
            Graph09.row01 = Graph09_Day1.Text;
            Graph09.row02 = Graph09_Day2.Text;
            Graph09.row03 = Graph09_Day3.Text;
            Graph09.row04 = Graph09_Day4.Text;
            Graph09.row05 = Graph09_Day5.Text;
            Graph09.row06 = Graph09_Day6.Text;
            Graph09.row07 = Graph09_Day7.Text;
            Graph09.row08 = Graph09_Day8.Text;
            Graph09.row09 = Graph09_Day9.Text;
            Graph09.row10 = Graph09_Day10.Text;
            Graph09.row11 = Graph09_Day11.Text;
            Graph09.row12 = Graph09_Day12.Text;
            Graph09.row13 = Graph09_Day13.Text;

            P6PL Graph10 = null;
            Graph10 = new P6PL();
            Graph10.row01 = Graph10_Day1.Text;
            Graph10.row02 = Graph10_Day2.Text;
            Graph10.row03 = Graph10_Day3.Text;
            Graph10.row04 = Graph10_Day4.Text;
            Graph10.row05 = Graph10_Day5.Text;
            Graph10.row06 = Graph10_Day6.Text;
            Graph10.row07 = Graph10_Day7.Text;
            Graph10.row08 = Graph10_Day8.Text;
            Graph10.row09 = Graph10_Day9.Text;
            Graph10.row10 = Graph10_Day10.Text;
            Graph10.row11 = Graph10_Day11.Text;
            Graph10.row12 = Graph10_Day12.Text;
            Graph10.row13 = Graph10_Day13.Text;

            P6PL Graph11 = null;
            Graph11 = new P6PL();
            Graph11.row01 = Graph11_Day1.Text;
            Graph11.row02 = Graph11_Day2.Text;
            Graph11.row03 = Graph11_Day3.Text;
            Graph11.row04 = Graph11_Day4.Text;
            Graph11.row05 = Graph11_Day5.Text;
            Graph11.row06 = Graph11_Day6.Text;
            Graph11.row07 = Graph11_Day7.Text;
            Graph11.row08 = Graph11_Day8.Text;
            Graph11.row09 = Graph11_Day9.Text;
            Graph11.row10 = Graph11_Day10.Text;
            Graph11.row11 = Graph11_Day11.Text;
            Graph11.row12 = Graph11_Day12.Text;
            Graph11.row13 = Graph11_Day13.Text;

            P6PL Graph12 = null;
            Graph12 = new P6PL();
            Graph12.row01 = Graph12_Day1.Text;
            Graph12.row02 = Graph12_Day2.Text;
            Graph12.row03 = Graph12_Day3.Text;
            Graph12.row04 = Graph12_Day4.Text;
            Graph12.row05 = Graph12_Day5.Text;
            Graph12.row06 = Graph12_Day6.Text;
            Graph12.row07 = Graph12_Day7.Text;
            Graph12.row08 = Graph12_Day8.Text;
            Graph12.row09 = Graph12_Day9.Text;
            Graph12.row10 = Graph12_Day10.Text;
            Graph12.row11 = Graph12_Day11.Text;
            Graph12.row12 = Graph12_Day12.Text;
            Graph12.row13 = Graph12_Day13.Text;


            P6PL colTitle = null;
            colTitle = new P6PL();
            colTitle.row01 = LabelTitile01.Text;
            colTitle.row02 = LabelTitile02.Text;
            colTitle.row03 = LabelTitile03.Text;
            colTitle.row04 = LabelTitile04.Text;
            colTitle.row05 = LabelTitile05.Text;
            colTitle.row06 = LabelTitile06.Text;
            colTitle.row07 = LabelTitile07.Text;
            colTitle.row08 = LabelTitile08.Text;
            colTitle.row09 = LabelTitile09.Text;
            colTitle.row10 = LabelTitile10.Text;
            colTitle.row11 = LabelTitile11.Text;
            colTitle.row12 = LabelTitile12.Text;
            colTitle.row13 = LabelTitile13.Text;
            colTitle.row14 = LabelTitile14.Text;
            colTitle.row15 = LabelTitile15.Text;
            colTitle.row16 = LabelTitile16.Text;
            colTitle.row17 = LabelTitile17.Text;
            colTitle.row18 = LabelTitile18.Text;
            colTitle.row19 = LabelTitile19.Text;
            colTitle.row20 = LabelTitile20.Text;
            colTitle.row21 = LabelTitile21.Text;
            colTitle.row22 = LabelTitile22.Text;
            colTitle.row23 = LabelTitile23.Text;
            colTitle.row24 = LabelTitile24.Text;
            colTitle.row25 = LabelTitile25.Text;
            colTitle.row26 = LabelTitile26.Text;
            colTitle.row27 = LabelTitile27.Text;
            colTitle.row28 = LabelTitile28.Text;
            colTitle.row29 = LabelTitile29.Text;

            P6PL col01 = null;
            col01 = new P6PL();
            col01.row01 = Label01_Day1.Text;
            col01.row02 = Label02_Day1.Text;
            col01.row03 = Label03_Day1.Text;
            col01.row04 = Label04_Day1.Text;
            col01.row05 = Label05_Day1.Text;
            col01.row06 = Label06_Day1.Text;
            col01.row07 = Label07_Day1.Text;
            col01.row08 = Label08_Day1.Text;
            col01.row09 = Label09_Day1.Text;
            col01.row10 = Label10_Day1.Text;
            col01.row11 = Label11_Day1.Text;
            col01.row12 = Label12_Day1.Text;
            col01.row13 = Label13_Day1.Text;
            col01.row14 = Label14_Day1.Text;
            col01.row15 = Label15_Day1.Text;
            col01.row16 = Label16_Day1.Text;
            col01.row17 = Label17_Day1.Text;
            col01.row18 = Label18_Day1.Text;
            col01.row19 = Label19_Day1.Text;
            col01.row20 = Label20_Day1.Text;
            col01.row21 = Label21_Day1.Text;
            col01.row22 = Label22_Day1.Text;
            col01.row23 = Label23_Day1.Text;
            col01.row24 = Label24_Day1.Text;
            col01.row25 = Label25_Day1.Text;
            col01.row26 = Label26_Day1.Text;
            col01.row27 = Label27_Day1.Text;
            col01.row28 = Label28_Day1.Text;
            col01.row29 = Label29_Day1.Text;

            P6PL col02 = null;
            col02 = new P6PL();
            col02.row01 = Label01_Day2.Text;
            col02.row02 = Label02_Day2.Text;
            col02.row03 = Label03_Day2.Text;
            col02.row04 = Label04_Day2.Text;
            col02.row05 = Label05_Day2.Text;
            col02.row06 = Label06_Day2.Text;
            col02.row07 = Label07_Day2.Text;
            col02.row08 = Label08_Day2.Text;
            col02.row09 = Label09_Day2.Text;
            col02.row10 = Label10_Day2.Text;
            col02.row11 = Label11_Day2.Text;
            col02.row12 = Label12_Day2.Text;
            col02.row13 = Label13_Day2.Text;
            col02.row14 = Label14_Day2.Text;
            col02.row15 = Label15_Day2.Text;
            col02.row16 = Label16_Day2.Text;
            col02.row17 = Label17_Day2.Text;
            col02.row18 = Label18_Day2.Text;
            col02.row19 = Label19_Day2.Text;
            col02.row20 = Label20_Day2.Text;
            col02.row21 = Label21_Day2.Text;
            col02.row22 = Label22_Day2.Text;
            col02.row23 = Label23_Day2.Text;
            col02.row24 = Label24_Day2.Text;
            col02.row25 = Label25_Day2.Text;
            col02.row26 = Label26_Day2.Text;
            col02.row27 = Label27_Day2.Text;
            col02.row28 = Label28_Day2.Text;
            col02.row29 = Label29_Day2.Text;

            P6PL col03 = null;
            col03 = new P6PL();
            col03.row01 = Label01_Day3.Text;
            col03.row02 = Label02_Day3.Text;
            col03.row03 = Label03_Day3.Text;
            col03.row04 = Label04_Day3.Text;
            col03.row05 = Label05_Day3.Text;
            col03.row06 = Label06_Day3.Text;
            col03.row07 = Label07_Day3.Text;
            col03.row08 = Label08_Day3.Text;
            col03.row09 = Label09_Day3.Text;
            col03.row10 = Label10_Day3.Text;
            col03.row11 = Label11_Day3.Text;
            col03.row12 = Label12_Day3.Text;
            col03.row13 = Label13_Day3.Text;
            col03.row14 = Label14_Day3.Text;
            col03.row15 = Label15_Day3.Text;
            col03.row16 = Label16_Day3.Text;
            col03.row17 = Label17_Day3.Text;
            col03.row18 = Label18_Day3.Text;
            col03.row19 = Label19_Day3.Text;
            col03.row20 = Label20_Day3.Text;
            col03.row21 = Label21_Day3.Text;
            col03.row22 = Label22_Day3.Text;
            col03.row23 = Label23_Day3.Text;
            col03.row24 = Label24_Day3.Text;
            col03.row25 = Label25_Day3.Text;
            col03.row26 = Label26_Day3.Text;
            col03.row27 = Label27_Day3.Text;
            col03.row28 = Label28_Day3.Text;
            col03.row29 = Label29_Day3.Text;

            P6PL col04 = null;
            col04 = new P6PL();
            col04.row01 = Label01_Day4.Text;
            col04.row02 = Label02_Day4.Text;
            col04.row03 = Label03_Day4.Text;
            col04.row04 = Label04_Day4.Text;
            col04.row05 = Label05_Day4.Text;
            col04.row06 = Label06_Day4.Text;
            col04.row07 = Label07_Day4.Text;
            col04.row08 = Label08_Day4.Text;
            col04.row09 = Label09_Day4.Text;
            col04.row10 = Label10_Day4.Text;
            col04.row11 = Label11_Day4.Text;
            col04.row12 = Label12_Day4.Text;
            col04.row13 = Label13_Day4.Text;
            col04.row14 = Label14_Day4.Text;
            col04.row15 = Label15_Day4.Text;
            col04.row16 = Label16_Day4.Text;
            col04.row17 = Label17_Day4.Text;
            col04.row18 = Label18_Day4.Text;
            col04.row19 = Label19_Day4.Text;
            col04.row20 = Label20_Day4.Text;
            col04.row21 = Label21_Day4.Text;
            col04.row22 = Label22_Day4.Text;
            col04.row23 = Label23_Day4.Text;
            col04.row24 = Label24_Day4.Text;
            col04.row25 = Label25_Day4.Text;
            col04.row26 = Label26_Day4.Text;
            col04.row27 = Label27_Day4.Text;
            col04.row28 = Label28_Day4.Text;
            col04.row29 = Label29_Day4.Text;

            P6PL col05 = null;
            col05 = new P6PL();
            col05.row01 = Label01_Day5.Text;
            col05.row02 = Label02_Day5.Text;
            col05.row03 = Label03_Day5.Text;
            col05.row04 = Label04_Day5.Text;
            col05.row05 = Label05_Day5.Text;
            col05.row06 = Label06_Day5.Text;
            col05.row07 = Label07_Day5.Text;
            col05.row08 = Label08_Day5.Text;
            col05.row09 = Label09_Day5.Text;
            col05.row10 = Label10_Day5.Text;
            col05.row11 = Label11_Day5.Text;
            col05.row12 = Label12_Day5.Text;
            col05.row13 = Label13_Day5.Text;
            col05.row14 = Label14_Day5.Text;
            col05.row15 = Label15_Day5.Text;
            col05.row16 = Label16_Day5.Text;
            col05.row17 = Label17_Day5.Text;
            col05.row18 = Label18_Day5.Text;
            col05.row19 = Label19_Day5.Text;
            col05.row20 = Label20_Day5.Text;
            col05.row21 = Label21_Day5.Text;
            col05.row22 = Label22_Day5.Text;
            col05.row23 = Label23_Day5.Text;
            col05.row24 = Label24_Day5.Text;
            col05.row25 = Label25_Day5.Text;
            col05.row26 = Label26_Day5.Text;
            col05.row27 = Label27_Day5.Text;
            col05.row28 = Label28_Day5.Text;
            col05.row29 = Label29_Day5.Text;

            P6PL col06 = null;
            col06 = new P6PL();
            col06.row01 = Label01_Day6.Text;
            col06.row02 = Label02_Day6.Text;
            col06.row03 = Label03_Day6.Text;
            col06.row04 = Label04_Day6.Text;
            col06.row05 = Label05_Day6.Text;
            col06.row06 = Label06_Day6.Text;
            col06.row07 = Label07_Day6.Text;
            col06.row08 = Label08_Day6.Text;
            col06.row09 = Label09_Day6.Text;
            col06.row10 = Label10_Day6.Text;
            col06.row11 = Label11_Day6.Text;
            col06.row12 = Label12_Day6.Text;
            col06.row13 = Label13_Day6.Text;
            col06.row14 = Label14_Day6.Text;
            col06.row15 = Label15_Day6.Text;
            col06.row16 = Label16_Day6.Text;
            col06.row17 = Label17_Day6.Text;
            col06.row18 = Label18_Day6.Text;
            col06.row19 = Label19_Day6.Text;
            col06.row20 = Label20_Day6.Text;
            col06.row21 = Label21_Day6.Text;
            col06.row22 = Label22_Day6.Text;
            col06.row23 = Label23_Day6.Text;
            col06.row24 = Label24_Day6.Text;
            col06.row25 = Label25_Day6.Text;
            col06.row26 = Label26_Day6.Text;
            col06.row27 = Label27_Day6.Text;
            col06.row28 = Label28_Day6.Text;
            col06.row29 = Label29_Day6.Text;

            P6PL col07 = null;
            col07 = new P6PL();
            col07.row01 = Label01_Day7.Text;
            col07.row02 = Label02_Day7.Text;
            col07.row03 = Label03_Day7.Text;
            col07.row04 = Label04_Day7.Text;
            col07.row05 = Label05_Day7.Text;
            col07.row06 = Label06_Day7.Text;
            col07.row07 = Label07_Day7.Text;
            col07.row08 = Label08_Day7.Text;
            col07.row09 = Label09_Day7.Text;
            col07.row10 = Label10_Day7.Text;
            col07.row11 = Label11_Day7.Text;
            col07.row12 = Label12_Day7.Text;
            col07.row13 = Label13_Day7.Text;
            col07.row14 = Label14_Day7.Text;
            col07.row15 = Label15_Day7.Text;
            col07.row16 = Label16_Day7.Text;
            col07.row17 = Label17_Day7.Text;
            col07.row18 = Label18_Day7.Text;
            col07.row19 = Label19_Day7.Text;
            col07.row20 = Label20_Day7.Text;
            col07.row21 = Label21_Day7.Text;
            col07.row22 = Label22_Day7.Text;
            col07.row23 = Label23_Day7.Text;
            col07.row24 = Label24_Day7.Text;
            col07.row25 = Label25_Day7.Text;
            col07.row26 = Label26_Day7.Text;
            col07.row27 = Label27_Day7.Text;
            col07.row28 = Label28_Day7.Text;
            col07.row29 = Label29_Day7.Text;

            P6PL col08 = null;
            col08 = new P6PL();
            col08.row01 = Label01_Day8.Text;
            col08.row02 = Label02_Day8.Text;
            col08.row03 = Label03_Day8.Text;
            col08.row04 = Label04_Day8.Text;
            col08.row05 = Label05_Day8.Text;
            col08.row06 = Label06_Day8.Text;
            col08.row07 = Label07_Day8.Text;
            col08.row08 = Label08_Day8.Text;
            col08.row09 = Label09_Day8.Text;
            col08.row10 = Label10_Day8.Text;
            col08.row11 = Label11_Day8.Text;
            col08.row12 = Label12_Day8.Text;
            col08.row13 = Label13_Day8.Text;
            col08.row14 = Label14_Day8.Text;
            col08.row15 = Label15_Day8.Text;
            col08.row16 = Label16_Day8.Text;
            col08.row17 = Label17_Day8.Text;
            col08.row18 = Label18_Day8.Text;
            col08.row19 = Label19_Day8.Text;
            col08.row20 = Label20_Day8.Text;
            col08.row21 = Label21_Day8.Text;
            col08.row22 = Label22_Day8.Text;
            col08.row23 = Label23_Day8.Text;
            col08.row24 = Label24_Day8.Text;
            col08.row25 = Label25_Day8.Text;
            col08.row26 = Label26_Day8.Text;
            col08.row27 = Label27_Day8.Text;
            col08.row28 = Label28_Day8.Text;
            col08.row29 = Label29_Day8.Text;

            P6PL col09 = null;
            col09 = new P6PL();
            col09.row01 = Label01_Day9.Text;
            col09.row02 = Label02_Day9.Text;
            col09.row03 = Label03_Day9.Text;
            col09.row04 = Label04_Day9.Text;
            col09.row05 = Label05_Day9.Text;
            col09.row06 = Label06_Day9.Text;
            col09.row07 = Label07_Day9.Text;
            col09.row08 = Label08_Day9.Text;
            col09.row09 = Label09_Day9.Text;
            col09.row10 = Label10_Day9.Text;
            col09.row11 = Label11_Day9.Text;
            col09.row12 = Label12_Day9.Text;
            col09.row13 = Label13_Day9.Text;
            col09.row14 = Label14_Day9.Text;
            col09.row15 = Label15_Day9.Text;
            col09.row16 = Label16_Day9.Text;
            col09.row17 = Label17_Day9.Text;
            col09.row18 = Label18_Day9.Text;
            col09.row19 = Label19_Day9.Text;
            col09.row20 = Label20_Day9.Text;
            col09.row21 = Label21_Day9.Text;
            col09.row22 = Label22_Day9.Text;
            col09.row23 = Label23_Day9.Text;
            col09.row24 = Label24_Day9.Text;
            col09.row25 = Label25_Day9.Text;
            col09.row26 = Label26_Day9.Text;
            col09.row27 = Label27_Day9.Text;
            col09.row28 = Label28_Day9.Text;
            col09.row29 = Label29_Day9.Text;

            P6PL col10 = null;
            col10 = new P6PL();
            col10.row01 = Label01_Day10.Text;
            col10.row02 = Label02_Day10.Text;
            col10.row03 = Label03_Day10.Text;
            col10.row04 = Label04_Day10.Text;
            col10.row05 = Label05_Day10.Text;
            col10.row06 = Label06_Day10.Text;
            col10.row07 = Label07_Day10.Text;
            col10.row08 = Label08_Day10.Text;
            col10.row09 = Label09_Day10.Text;
            col10.row10 = Label10_Day10.Text;
            col10.row11 = Label11_Day10.Text;
            col10.row12 = Label12_Day10.Text;
            col10.row13 = Label13_Day10.Text;
            col10.row14 = Label14_Day10.Text;
            col10.row15 = Label15_Day10.Text;
            col10.row16 = Label16_Day10.Text;
            col10.row17 = Label17_Day10.Text;
            col10.row18 = Label18_Day10.Text;
            col10.row19 = Label19_Day10.Text;
            col10.row20 = Label20_Day10.Text;
            col10.row21 = Label21_Day10.Text;
            col10.row22 = Label22_Day10.Text;
            col10.row23 = Label23_Day10.Text;
            col10.row24 = Label24_Day10.Text;
            col10.row25 = Label25_Day10.Text;
            col10.row26 = Label26_Day10.Text;
            col10.row27 = Label27_Day10.Text;
            col10.row28 = Label28_Day10.Text;
            col10.row29 = Label29_Day10.Text;

            string fileName = TopSelector.yearTextBox.Text + TopSelector.monthTextBox.Text + Constants._Brochure_P6_PRIFIX + TopSelector.drpEntity.SelectedValue + ".xlsx";
            BusinessService.CreateP6Excel(Label01, Graph01, Graph02, Graph03, Graph04, Graph05, Graph06, Graph07, Graph08, Graph09, Graph10, Graph11, Graph12, colTitle, col01, col02, col03, col04, col05, col06, col07, col08, col09, col10, fileName, LabelCurrentMonth.Text, LabelYTD.Text);
            SPSite site = new SPSite(SPContext.Current.Site.ID);
            string reportUrl = site.Url + "/" + Constants._EXCEL_Library + "/" + fileName;
            Page.ClientScript.RegisterStartupScript(this.GetType(), "Message", string.Format("<script>window.open('" + reportUrl + "');</script>"));

        }

        [Serializable]
        public class fsentity
        {
            public bool controlrow { get; set; }
            public bool datarow { get; set; }
            public bool insertcontrol { get; set; }
            public bool bold { get; set; }
            public string unit { get; set; }
            public string accountcode { get; set; }
            public string description { get; set; }
            public string Jan { get; set; }
            public string Feb { get; set; }
            public string Mar { get; set; }
            public string Apr { get; set; }
            public string May { get; set; }
            public string Jun { get; set; }
            public string Jul { get; set; }
            public string Aug { get; set; }
            public string Sep { get; set; }
            public string Oct { get; set; }
            public string Nov { get; set; }
            public string Dec { get; set; }
            public int digits { get; set; }
        }

        void BindLastMonth(string coCd, string year, string month)
        {
            string strCurrency = TopSelector.lbCompanyCurrency.Text;
            string strTonnage = TopSelector.lbCompanyTonnage.Text;

            LabelTitile01.Text = "Tonnages (" + strTonnage + ") (Head Products Manufactured)";
            LabelTitile02.Text = "Tonnages (" + strTonnage + ") (First Products Manufactured)";
            LabelTitile03.Text = "Global Sales (" + strCurrency + ")";
            LabelTitile04.Text = "Sales (" + strCurrency + ") (All manufactured products)";
            LabelTitile05.Text = "Sales (" + strCurrency + ") (Head products manufactured)";
            LabelTitile06.Text = "Sales (" + strCurrency + ") (First Products manufactured)";
            LabelTitile07.Text = "Variable Margin  (" + strCurrency + ")  (All manuf. products)";
            LabelTitile08.Text = "VM  / SALES (%)";
            LabelTitile09.Text = "VM (" + strCurrency + ") (All traded products)";
            LabelTitile10.Text = "Fixed Operating Costs excl. Depreciation (" + strCurrency + ")(industrial, logistics, sales)";
            LabelTitile11.Text = "Commercial Contribution (CC) (" + strCurrency + ")";
            LabelTitile12.Text = "Operating depreciation (" + strCurrency + ")(industrial, logistics, sales)";
            LabelTitile13.Text = "Commercial Margin (CM) (" + strCurrency + ")";
            LabelTitile14.Text = "CM  / (Sales + VM traded) (%)";
            LabelTitile15.Text = "Admin. Excl. Depreciation (" + strCurrency + ")";
            LabelTitile16.Text = "R&D excl. Depreciation (" + strCurrency + ")";
            LabelTitile17.Text = "Economic EBITDA (" + strCurrency + ")";
            LabelTitile18.Text = "Economic EBITDA  / (Sales + VM traded) (%)";
            LabelTitile19.Text = "Depreciation : operations, R&D, Adm. (" + strCurrency + ")";
            LabelTitile20.Text = "Management Operating profit (MOP) (" + strCurrency + ")";
            LabelTitile21.Text = "OP / (Sales + VM traded) (%)";
            LabelTitile22.Text = "Transition gains and charges (" + strCurrency + ")";
            LabelTitile23.Text = "Other operating income and charges (" + strCurrency + ")";
            LabelTitile24.Text = "Operating Income (OI) (" + strCurrency + ")";
            LabelTitile25.Text = "Financial expenses, net (" + strCurrency + ")";
            LabelTitile26.Text = "Income Tax expenses (" + strCurrency + ")";
            LabelTitile27.Text = "Net Income (NI) (" + strCurrency + ")";
            LabelTitile28.Text = "NI / (Sales + VM Trade) (%)";
            LabelTitile29.Text = "Net Income Before Amort. & Depreciation (" + strCurrency + ")";

            int m = Convert.ToInt32(TopSelector.monthTextBox.Text);
            int y = Convert.ToInt32(year) - 1;
            string yearN_1 = Convert.ToString(y);
            int y2 = Convert.ToInt32(year) - 2;
            string yearN_2 = Convert.ToString(y2);

            List<String> monthList = new List<String>();
            string year_n_1 = yearN_1.Substring(2);
            for (int i = m; i <= 12; i++)
            {
                string strMonth = i.ToString();

                switch (i.ToString())
                {
                    case "1":
                        monthList.Add("Jan-" + year_n_1);
                        break;
                    case "2":
                        monthList.Add("Feb-" + year_n_1);
                        break;
                    case "3":
                        monthList.Add("Mar-" + year_n_1);
                        break;
                    case "4":
                        monthList.Add("Apr-" + year_n_1);
                        break;
                    case "5":
                        monthList.Add("May-" + year_n_1);
                        break;
                    case "6":
                        monthList.Add("Jun-" + year_n_1);
                        break;
                    case "7":
                        monthList.Add("Jul-" + year_n_1);
                        break;
                    case "8":
                        monthList.Add("Aug-" + year_n_1);
                        break;
                    case "9":
                        monthList.Add("Sep-" + year_n_1);
                        break;
                    case "10":
                        monthList.Add("Oct-" + year_n_1);
                        break;
                    case "11":
                        monthList.Add("Nov-" + year_n_1);
                        break;
                    case "12":
                        monthList.Add("Dec-" + year_n_1);
                        break;
                    default:
                        break;
                }
            }
            string year_title = year.Substring(2);
            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                switch (i.ToString())
                {
                    case "1":
                        monthList.Add("Jan-" + year_title);
                        break;
                    case "2":
                        monthList.Add("Feb-" + year_title);
                        break;
                    case "3":
                        monthList.Add("Mar-" + year_title);
                        break;
                    case "4":
                        monthList.Add("Apr-" + year_title);
                        break;
                    case "5":
                        monthList.Add("May-" + year_title);
                        break;
                    case "6":
                        monthList.Add("Jun-" + year_title);
                        break;
                    case "7":
                        monthList.Add("Jul-" + year_title);
                        break;
                    case "8":
                        monthList.Add("Aug-" + year_title);
                        break;
                    case "9":
                        monthList.Add("Sep-" + year_title);
                        break;
                    case "10":
                        monthList.Add("Oct-" + year_title);
                        break;
                    case "11":
                        monthList.Add("Nov-" + year_title);
                        break;
                    case "12":
                        monthList.Add("Dec-" + year_title);
                        break;
                    default:
                        break;
                }
            }

            Label01_Date1.Text = monthList[0];
            Label01_Date2.Text = monthList[1];
            Label01_Date3.Text = monthList[2];
            Label01_Date4.Text = monthList[3];
            Label01_Date5.Text = monthList[4];
            Label01_Date6.Text = monthList[5];
            Label01_Date7.Text = monthList[6];
            Label01_Date8.Text = monthList[7];
            Label01_Date9.Text = monthList[8];
            Label01_Date10.Text = monthList[9];
            Label01_Date11.Text = monthList[10];
            Label01_Date12.Text = monthList[11];
            Label01_Date13.Text = monthList[12];

            Label02_Date1.Text = monthList[0];
            Label02_Date2.Text = monthList[1];
            Label02_Date3.Text = monthList[2];
            Label02_Date4.Text = monthList[3];
            Label02_Date5.Text = monthList[4];
            Label02_Date6.Text = monthList[5];
            Label02_Date7.Text = monthList[6];
            Label02_Date8.Text = monthList[7];
            Label02_Date9.Text = monthList[8];
            Label02_Date10.Text = monthList[9];
            Label02_Date11.Text = monthList[10];
            Label02_Date12.Text = monthList[11];
            Label02_Date13.Text = monthList[12];

            Label03_Date1.Text = monthList[0];
            Label03_Date2.Text = monthList[1];
            Label03_Date3.Text = monthList[2];
            Label03_Date4.Text = monthList[3];
            Label03_Date5.Text = monthList[4];
            Label03_Date6.Text = monthList[5];
            Label03_Date7.Text = monthList[6];
            Label03_Date8.Text = monthList[7];
            Label03_Date9.Text = monthList[8];
            Label03_Date10.Text = monthList[9];
            Label03_Date11.Text = monthList[10];
            Label03_Date12.Text = monthList[11];
            Label03_Date13.Text = monthList[12];

            Label04_Date1.Text = monthList[0];
            Label04_Date2.Text = monthList[1];
            Label04_Date3.Text = monthList[2];
            Label04_Date4.Text = monthList[3];
            Label04_Date5.Text = monthList[4];
            Label04_Date6.Text = monthList[5];
            Label04_Date7.Text = monthList[6];
            Label04_Date8.Text = monthList[7];
            Label04_Date9.Text = monthList[8];
            Label04_Date10.Text = monthList[9];
            Label04_Date11.Text = monthList[10];
            Label04_Date12.Text = monthList[11];
            Label04_Date13.Text = monthList[12];


            Graph03_Day13.Text = "0";

            Graph06_Day13.Text = "0";

            Graph09_Day13.Text = "0";

            Graph12_Day13.Text = "0";



            //SPListItem itemBudgetFC = Common.BusinessService.GetBudgetItem(coCd, year, "Budget_GRFC");
            //SPListItem itemBudgetPL = Common.BusinessService.GetBudgetItem(coCd, year, "Budget_PL");

            //if (itemBudgetPL != null)
            //{
            //    string billData = itemBudgetPL["BillData"].ToString();

            //    JavaScriptSerializer Serializer = new JavaScriptSerializer();

            //    List<fsentity> obj = Serializer.Deserialize<List<fsentity>>(billData);

            //    var objentity = obj as List<fsentity>;

            //    objentity.ForEach(p =>
            //    {
            //        if (p.accountcode == "PL03010102")
            //        {

            //            Graph09_Day13.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
            //        }

            //        if (p.accountcode == "PL03010101-1")
            //        {

            //            Graph12_Day13.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
            //        }
            //    });


            //}

            //if (itemBudgetFC != null)
            //{
            //    string billData = itemBudgetFC["BillData"].ToString();

            //    JavaScriptSerializer Serializer = new JavaScriptSerializer();

            //    List<fsentity> obj = Serializer.Deserialize<List<fsentity>>(billData);

            //    var objentity = obj as List<fsentity>;

            //    objentity.ForEach(p =>
            //    {
            //        if (p.accountcode == "FC03010000")
            //        {

            //            Graph06_Day13.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
            //        }
            //    });
            //}


            //if (itemBudgetPL != null)
            //{
            //    string billData = itemBudgetPL["BillData"].ToString();

            //    JavaScriptSerializer Serializer = new JavaScriptSerializer();

            //    List<fsentity> obj = Serializer.Deserialize<List<fsentity>>(billData);

            //    var objentity = obj as List<fsentity>;

            //    objentity.ForEach(p =>
            //    {
            //        if (p.accountcode == "PL03060101")
            //        {

            //            Graph03_Day13.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
            //        }
            //    });


            //}


            SPListItem item = Common.BusinessService.GetItem(coCd, year, month, "P_L");
            SPListItem itemN_1 = Common.BusinessService.GetItem(coCd, yearN_1, month, "P_L");
            SPListItem itemBudget = Common.BusinessService.GetBudgetItem(coCd, year, "Budget_PL");
            SPListItem itemFC = Common.BusinessService.GetItem(coCd, year, month, "Gross Fixed Cost");
            SPListItem itemFCN_1 = Common.BusinessService.GetItem(coCd, yearN_1, month, "Gross Fixed Cost");
            SPListItem itemBudgetFC = Common.BusinessService.GetBudgetItem(coCd, year, "Budget_GRFC");

            Label01_Day1.Text = "0";
            Label02_Day1.Text = "0";
            Label03_Day1.Text = "0";
            Label04_Day1.Text = "0";
            Label05_Day1.Text = "0";
            Label06_Day1.Text = "0";
            Label07_Day1.Text = "0";
            Label08_Day1.Text = "0";
            Label09_Day1.Text = "0";
            Label10_Day1.Text = "0";
            Label11_Day1.Text = "0";
            Label12_Day1.Text = "0";
            Label13_Day1.Text = "0";
            Label14_Day1.Text = "0";
            Label15_Day1.Text = "0";
            Label16_Day1.Text = "0";
            Label17_Day1.Text = "0";
            Label18_Day1.Text = "0";
            Label19_Day1.Text = "0";
            Label20_Day1.Text = "0";
            Label21_Day1.Text = "0";
            Label22_Day1.Text = "0";
            Label23_Day1.Text = "0";
            Label24_Day1.Text = "0";
            Label25_Day1.Text = "0";
            Label26_Day1.Text = "0";
            Label27_Day1.Text = "0";
            Label28_Day1.Text = "0";
            Label29_Day1.Text = "0";

            Label01_Day6.Text = "0";
            Label02_Day6.Text = "0";
            Label03_Day6.Text = "0";
            Label04_Day6.Text = "0";
            Label05_Day6.Text = "0";
            Label06_Day6.Text = "0";
            Label07_Day6.Text = "0";
            Label08_Day6.Text = "0";
            Label09_Day6.Text = "0";
            Label10_Day6.Text = "0";
            Label11_Day6.Text = "0";
            Label12_Day6.Text = "0";
            Label13_Day6.Text = "0";
            Label14_Day6.Text = "0";
            Label15_Day6.Text = "0";
            Label16_Day6.Text = "0";
            Label17_Day6.Text = "0";
            Label18_Day6.Text = "0";
            Label19_Day6.Text = "0";
            Label20_Day6.Text = "0";
            Label21_Day6.Text = "0";
            Label22_Day6.Text = "0";
            Label23_Day6.Text = "0";
            Label24_Day6.Text = "0";
            Label25_Day6.Text = "0";
            Label26_Day6.Text = "0";
            Label27_Day6.Text = "0";
            Label28_Day6.Text = "0";
            Label29_Day6.Text = "0";

            if (itemN_1 != null)
            {
                Label01_Day1.Text = itemN_1["CM_PL02010101-1"].ToString();
                Label02_Day1.Text = itemN_1["CM_PL02010101-2"].ToString();
                Label03_Day1.Text = itemN_1["CM_PL02010000"].ToString();
                Label04_Day1.Text = itemN_1["CM_PL02010102"].ToString();
                Label05_Day1.Text = itemN_1["CM_PL02010102-1"].ToString();
                Label06_Day1.Text = itemN_1["CM_PL02010102-2"].ToString();
                Label07_Day1.Text = itemN_1["CM_PL02010105"].ToString();
                Label08_Day1.Text = Utilities.Division(itemN_1["CM_PL02010105"] + "", itemN_1["CM_PL02010102"] + "", false);
                 
                Label09_Day1.Text = itemN_1["CM_PL02010205"].ToString();
                Label10_Day1.Text = itemN_1["CM_PL02020101"].ToString();
                Label11_Day1.Text = itemN_1["CM_PL02030101"].ToString();
                Label12_Day1.Text = itemN_1["CM_PL02020201"].ToString();
                Label13_Day1.Text = itemN_1["CM_PL02040101"].ToString();
                Label14_Day1.Text = Utilities.Division(itemN_1["CM_PL02040101"] + "", itemN_1["CM_PL02010300"] + "", false);

                Label15_Day1.Text = itemN_1["CM_PL02020104"].ToString();
                Label16_Day1.Text = itemN_1["CM_PL02020107"].ToString();
                Label17_Day1.Text = (BusinessService.decimalParse(itemN_1["CM_PL02050101"] + "")
                    + BusinessService.decimalParse(itemFCN_1["CM_FC02010504"] + "")
                    + BusinessService.decimalParse(itemFCN_1["CM_FC02010505"] + "")).ToString();

                Label18_Day1.Text = Utilities.Division(Label17_Day1.Text, itemN_1["CM_PL02010300"] + "", false);

                Label19_Day1.Text = itemN_1["CM_PL02020206"].ToString();
                Label20_Day1.Text = (BusinessService.decimalParse(itemN_1["CM_PL02060101"] + "")
                    + BusinessService.decimalParse(itemFCN_1["CM_FC02010504"] + "")
                    + BusinessService.decimalParse(itemFCN_1["CM_FC02010505"] + "")).ToString();

                Label21_Day1.Text = Utilities.Division(Label20_Day1.Text, itemN_1["CM_PL02010300"] + "", false);

                Label22_Day1.Text = (BusinessService.decimalParse(itemN_1["CM_PL02020500"] + "")
                   - BusinessService.decimalParse(itemFCN_1["CM_FC02010504"] + "")
                   - BusinessService.decimalParse(itemFCN_1["CM_FC02010505"] + "")).ToString();

                Label23_Day1.Text = itemN_1["CM_PL02020300"].ToString();
                Label24_Day1.Text = itemN_1["CM_PL02070101"].ToString();
                Label25_Day1.Text = itemN_1["CM_PL02020400"].ToString();
                Label26_Day1.Text = itemN_1["CM_PL02020600"].ToString();
                Label27_Day1.Text = itemN_1["CM_PL02080101"].ToString();
                Label28_Day1.Text = Utilities.Division(itemN_1["CM_PL02090101"] + "", itemN_1["CM_PL02010300"] + "", false);

                Label29_Day1.Text = itemN_1["CM_PL02090101"].ToString();

                Label01_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02010101-1"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02010101-1"].ToString()));
                Label02_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02010101-2"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02010101-2"].ToString()));
                Label03_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02010000"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02010000"].ToString()));
                Label04_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02010102"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02010102"].ToString()));
                Label05_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02010102-1"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02010102-1"].ToString()));
                Label06_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02010102-2"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02010102-2"].ToString()));
                Label07_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02010105"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02010105"].ToString()));
                //Label08_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02010106"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02010106"].ToString()));
               

                Label09_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02010205"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02010205"].ToString()));
                Label10_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02020101"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02020101"].ToString()));
                Label11_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02030101"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02030101"].ToString()));
                Label12_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02020201"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02020201"].ToString()));
                Label13_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02040101"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02040101"].ToString()));
                //Label14_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02040102"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02040102"].ToString()));
                //if ((Convert.ToDecimal(Label04_Day6.Text) + Convert.ToDecimal(Label09_Day6.Text)).ToString() == "0" || (Convert.ToDecimal(Label04_Day6.Text) + Convert.ToDecimal(Label09_Day6.Text)).ToString() == "0.00")
                //{
                //    Label14_Day6.Text = "0";
                //}
                //else
                //{
                //    Label14_Day6.Text = ((Convert.ToDecimal(Label13_Day6.Text) / (Convert.ToDecimal(Label04_Day6.Text) + Convert.ToDecimal(Label09_Day6.Text))) * 100).ToString("n");
                //}
                Label15_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02020104"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02020104"].ToString()));
                Label16_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02020107"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02020107"].ToString()));

                Label08_Day6.Text = Utilities.Division(BusinessService.GetYTDValue(itemN_1, "PL02010105") + "", BusinessService.GetYTDValue(itemN_1, "PL02010102") + "", false);
                Label14_Day6.Text = Utilities.Division(BusinessService.GetYTDValue(itemN_1, "PL02040101") + "", BusinessService.GetYTDValue(itemN_1, "PL02010300") + "", false);

                //YTD N-1 modify by mike
                Label17_Day6.Text = (BusinessService.GetYTDValue(itemN_1, "PL02050101")
                  + BusinessService.GetYTDValue(itemFCN_1, "FC02010504")
                  + BusinessService.GetYTDValue(itemFCN_1, "FC02010505")).ToString();

                Label18_Day6.Text = Utilities.Division(Label17_Day6.Text, BusinessService.GetYTDValue(itemN_1, "PL02010300") + "", false);

                Label19_Day6.Text = BusinessService.GetYTDValue(itemN_1, "PL02020206") + "";
                Label20_Day6.Text = (BusinessService.GetYTDValue(itemN_1, "PL02060101")
                  + BusinessService.GetYTDValue(itemFCN_1, "FC02010504")
                  + BusinessService.GetYTDValue(itemFCN_1, "FC02010505")).ToString();

                Label21_Day6.Text = Utilities.Division(Label20_Day6.Text, BusinessService.GetYTDValue(itemN_1, "PL02010300") + "", false);

                Label22_Day6.Text = (BusinessService.GetYTDValue(itemN_1, "PL02020500")
                  - BusinessService.GetYTDValue(itemFCN_1, "FC02010504")
                  - BusinessService.GetYTDValue(itemFCN_1, "FC02010505")).ToString(); 

                 
                Label23_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02020300"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02020300"].ToString()));
                Label24_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02070101"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02070101"].ToString()));
                Label25_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02020400"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02020400"].ToString()));
                Label26_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02020600"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02020600"].ToString()));
                Label27_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02080101"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02080101"].ToString()));
            
                Label28_Day6.Text = Utilities.Division(BusinessService.GetYTDValue(itemN_1, "PL02080101") + "", BusinessService.GetYTDValue(itemN_1, "PL02010300") + "", false);
                 
                Label29_Day6.Text = Convert.ToString(Convert.ToDecimal(itemN_1["CM_PL02090101"].ToString()) + Convert.ToDecimal(itemN_1["YTDM1_PL02090101"].ToString()));
            }
            if (itemFCN_1 != null)
            {
                Label10_Day1.Text = Convert.ToString(Convert.ToDecimal(Label10_Day1.Text) + Convert.ToDecimal(itemFCN_1["CM_FC02010501"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010502"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010503"].ToString()));
                Label15_Day1.Text = Convert.ToString(Convert.ToDecimal(Label15_Day1.Text) + Convert.ToDecimal(itemFCN_1["CM_FC02010504"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010505"].ToString()));
                Label16_Day1.Text = Convert.ToString(Convert.ToDecimal(Label16_Day1.Text) + Convert.ToDecimal(itemFCN_1["CM_FC02010506"].ToString()));

                Label10_Day6.Text = Convert.ToString(Convert.ToDecimal(Label10_Day6.Text) + Convert.ToDecimal(itemFCN_1["CM_FC02010501"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010502"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010503"].ToString()) + Convert.ToDecimal(itemFCN_1["YTDM1_FC02010501"].ToString()) + Convert.ToDecimal(itemFCN_1["YTDM1_FC02010502"].ToString()) + Convert.ToDecimal(itemFCN_1["YTDM1_FC02010503"].ToString()));
                Label15_Day6.Text = Convert.ToString(Convert.ToDecimal(Label15_Day6.Text) + Convert.ToDecimal(itemFCN_1["CM_FC02010504"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010505"].ToString()) + Convert.ToDecimal(itemFCN_1["YTDM1_FC02010504"].ToString()) + Convert.ToDecimal(itemFCN_1["YTDM1_FC02010505"].ToString()));
                Label16_Day6.Text = Convert.ToString(Convert.ToDecimal(Label16_Day6.Text) + Convert.ToDecimal(itemFCN_1["CM_FC02010506"].ToString()) + Convert.ToDecimal(itemFCN_1["YTDM1_FC02010506"].ToString()));
            }

            Label01_Day3.Text = "0";
            Label02_Day3.Text = "0";
            Label03_Day3.Text = "0";
            Label04_Day3.Text = "0";
            Label05_Day3.Text = "0";
            Label06_Day3.Text = "0";
            Label07_Day3.Text = "0";
            Label08_Day3.Text = "0";
            Label09_Day3.Text = "0";
            Label10_Day3.Text = "0";
            Label11_Day3.Text = "0";
            Label12_Day3.Text = "0";
            Label13_Day3.Text = "0";
            Label14_Day3.Text = "0";
            Label15_Day3.Text = "0";
            Label16_Day3.Text = "0";
            Label17_Day3.Text = "0";
            Label18_Day3.Text = "0";
            Label19_Day3.Text = "0";
            Label20_Day3.Text = "0";
            Label21_Day3.Text = "0";
            Label22_Day3.Text = "0";
            Label23_Day3.Text = "0";
            Label24_Day3.Text = "0";
            Label25_Day3.Text = "0";
            Label26_Day3.Text = "0";
            Label27_Day3.Text = "0";
            Label28_Day3.Text = "0";
            Label29_Day3.Text = "0";

            Label01_Day8.Text = "0";
            Label02_Day8.Text = "0";
            Label03_Day8.Text = "0";
            Label04_Day8.Text = "0";
            Label05_Day8.Text = "0";
            Label06_Day8.Text = "0";
            Label07_Day8.Text = "0";
            Label08_Day8.Text = "0";
            Label09_Day8.Text = "0";
            Label10_Day8.Text = "0";
            Label11_Day8.Text = "0";
            Label12_Day8.Text = "0";
            Label13_Day8.Text = "0";
            Label14_Day8.Text = "0";
            Label15_Day8.Text = "0";
            Label16_Day8.Text = "0";
            Label17_Day8.Text = "0";
            Label18_Day8.Text = "0";
            Label19_Day8.Text = "0";
            Label20_Day8.Text = "0";
            Label21_Day8.Text = "0";
            Label22_Day8.Text = "0";
            Label23_Day8.Text = "0";
            Label24_Day8.Text = "0";
            Label25_Day8.Text = "0";
            Label26_Day8.Text = "0";
            Label27_Day8.Text = "0";
            Label28_Day8.Text = "0";
            Label29_Day8.Text = "0";

            if (item != null)
            {
                Label01_Day3.Text = item["CM_PL02010101-1"].ToString();
                Label02_Day3.Text = item["CM_PL02010101-2"].ToString();
                Label03_Day3.Text = item["CM_PL02010000"].ToString();
                Label04_Day3.Text = item["CM_PL02010102"].ToString();
                Label05_Day3.Text = item["CM_PL02010102-1"].ToString();
                Label06_Day3.Text = item["CM_PL02010102-2"].ToString();
                Label07_Day3.Text = item["CM_PL02010105"].ToString();
                
                Label09_Day3.Text = item["CM_PL02010205"].ToString();
                Label10_Day3.Text = item["CM_PL02020101"].ToString();
                Label11_Day3.Text = item["CM_PL02030101"].ToString();
                Label12_Day3.Text = item["CM_PL02020201"].ToString();
                Label13_Day3.Text = item["CM_PL02040101"].ToString();
                Label15_Day3.Text = item["CM_PL02020104"].ToString();
                Label16_Day3.Text = item["CM_PL02020107"].ToString();

                 
                Label14_Day3.Text = Utilities.Division(item["CM_PL02040101"] + "", item["CM_PL02010300"] + "", false);
                Label08_Day3.Text = Utilities.Division(item["CM_PL02010105"] + "", item["CM_PL02010102"] + "", false); 

                //modify by mike
                Label17_Day3.Text = (BusinessService.decimalParse(item["CM_PL02050101"] + "")
                   + BusinessService.decimalParse(itemFC["CM_FC02010504"] + "")
                   + BusinessService.decimalParse(itemFC["CM_FC02010505"] + "")).ToString();

                Label18_Day3.Text = Utilities.Division(Label17_Day3.Text, item["CM_PL02010300"] + "", false);

                Label19_Day3.Text = item["CM_PL02020206"].ToString();
                Label20_Day3.Text = (BusinessService.decimalParse(item["CM_PL02060101"] + "")
                    + BusinessService.decimalParse(itemFC["CM_FC02010504"] + "")
                    + BusinessService.decimalParse(itemFC["CM_FC02010505"] + "")).ToString();

                Label21_Day3.Text = Utilities.Division(Label20_Day3.Text, item["CM_PL02010300"] + "", false);

                Label22_Day3.Text = (BusinessService.decimalParse(item["CM_PL02020500"] + "")
                   - BusinessService.decimalParse(itemFC["CM_FC02010504"] + "")
                   - BusinessService.decimalParse(itemFC["CM_FC02010505"] + "")).ToString();


                Label23_Day3.Text = item["CM_PL02020300"].ToString();
                Label24_Day3.Text = item["CM_PL02070101"].ToString();
                Label25_Day3.Text = item["CM_PL02020400"].ToString();
                Label26_Day3.Text = item["CM_PL02020600"].ToString();
                Label27_Day3.Text = item["CM_PL02080101"].ToString();
                Label28_Day3.Text = Utilities.Division(Label27_Day3.Text, item["CM_PL02010300"] + "", false);  

                Label29_Day3.Text = item["CM_PL02090101"].ToString();

                Label01_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02010101-1"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02010101-1"].ToString()));
                Label02_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02010101-2"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02010101-2"].ToString()));
                Label03_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02010000"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02010000"].ToString()));
                Label04_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02010102"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02010102"].ToString()));
                Label05_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02010102-1"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02010102-1"].ToString()));
                Label06_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02010102-2"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02010102-2"].ToString()));
                Label07_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02010105"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02010105"].ToString()));
                //Label08_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02010106"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02010106"].ToString()));
          
                Label08_Day8.Text = Utilities.Division(BusinessService.GetYTDValue(item, "PL02010105").ToString(),
                    BusinessService.GetYTDValue(item, "PL02010102").ToString(), false).ToString();


                Label09_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02010205"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02010205"].ToString()));
                Label10_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02020101"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02020101"].ToString()));
                Label11_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02030101"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02030101"].ToString()));
                Label12_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02020201"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02020201"].ToString()));
                Label13_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02040101"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02040101"].ToString()));
                //Label14_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02040102"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02040102"].ToString()));
                //if ((Convert.ToDecimal(Label04_Day8.Text) + Convert.ToDecimal(Label09_Day8.Text)).ToString() == "0" || (Convert.ToDecimal(Label04_Day8.Text) + Convert.ToDecimal(Label09_Day8.Text)).ToString() == "0.00")
                //{
                //    Label14_Day8.Text = "0";
                //}
                //else
                //{
                //    Label14_Day8.Text = ((Convert.ToDecimal(Label13_Day8.Text) / (Convert.ToDecimal(Label04_Day8.Text) + Convert.ToDecimal(Label09_Day8.Text)))).ToString("n");
                //}
                Label14_Day8.Text = Utilities.Division(BusinessService.GetYTDValue(item, "PL02040101").ToString(),
                    BusinessService.GetYTDValue(item, "PL02010300").ToString(), false).ToString();

                Label15_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02020104"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02020104"].ToString()));
                Label16_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02020107"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02020107"].ToString()));
                // Label17_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02050101"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02050101"].ToString()));
                 

                //YTD modify by mike
                Label17_Day8.Text = (BusinessService.GetYTDValue(item, "PL02050101")
                  + BusinessService.GetYTDValue(itemFC, "FC02010504")
                  + BusinessService.GetYTDValue(itemFC, "FC02010505")).ToString();

                Label18_Day8.Text = Utilities.Division(Label17_Day8.Text, BusinessService.GetYTDValue(item, "PL02010300") + "", false);

                Label19_Day8.Text = BusinessService.GetYTDValue(item, "PL02020206") + "";
                Label20_Day8.Text = (BusinessService.GetYTDValue(item, "PL02060101")
                  + BusinessService.GetYTDValue(itemFC, "FC02010504")
                  + BusinessService.GetYTDValue(itemFC, "FC02010505")).ToString();

                Label21_Day8.Text = Utilities.Division(Label20_Day8.Text, BusinessService.GetYTDValue(item, "PL02010300") + "", false);

                Label22_Day8.Text = (BusinessService.GetYTDValue(item, "PL02020500")
                  - BusinessService.GetYTDValue(itemFC, "FC02010504")
                  - BusinessService.GetYTDValue(itemFC, "FC02010505")).ToString();


                Label23_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02020300"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02020300"].ToString()));
                Label24_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02070101"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02070101"].ToString()));
                Label25_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02020400"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02020400"].ToString()));
                Label26_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02020600"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02020600"].ToString()));
                Label27_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02080101"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02080101"].ToString()));

                Label28_Day8.Text = Utilities.Division(Label27_Day8.Text, BusinessService.GetYTDValue(item, "PL02010300") + "", false);

                Label29_Day8.Text = Convert.ToString(Convert.ToDecimal(item["CM_PL02090101"].ToString()) + Convert.ToDecimal(item["YTDM1_PL02090101"].ToString()));
            }
            if (itemFC != null)
            {
                Label10_Day3.Text = Convert.ToString(Convert.ToDecimal(Label10_Day3.Text) + Convert.ToDecimal(itemFC["CM_FC02010501"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010502"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010503"].ToString()));
                Label15_Day3.Text = Convert.ToString(Convert.ToDecimal(Label15_Day3.Text) + Convert.ToDecimal(itemFC["CM_FC02010504"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010505"].ToString()));
                Label16_Day3.Text = Convert.ToString(Convert.ToDecimal(Label16_Day3.Text) + Convert.ToDecimal(itemFC["CM_FC02010506"].ToString()));

                Label10_Day8.Text = Convert.ToString(Convert.ToDecimal(Label10_Day8.Text) + Convert.ToDecimal(itemFC["CM_FC02010501"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010502"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010503"].ToString()) + Convert.ToDecimal(itemFC["YTDM1_FC02010501"].ToString()) + Convert.ToDecimal(itemFC["YTDM1_FC02010502"].ToString()) + Convert.ToDecimal(itemFC["YTDM1_FC02010503"].ToString()));
                Label15_Day8.Text = Convert.ToString(Convert.ToDecimal(Label15_Day8.Text) + Convert.ToDecimal(itemFC["CM_FC02010504"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010505"].ToString()) + Convert.ToDecimal(itemFC["YTDM1_FC02010504"].ToString()) + Convert.ToDecimal(itemFC["YTDM1_FC02010505"].ToString()));
                Label16_Day8.Text = Convert.ToString(Convert.ToDecimal(Label16_Day8.Text) + Convert.ToDecimal(itemFC["CM_FC02010506"].ToString()) + Convert.ToDecimal(itemFC["YTDM1_FC02010506"].ToString()));
            }

            Label01_Day2.Text = "0";
            Label02_Day2.Text = "0";
            Label03_Day2.Text = "0";
            Label04_Day2.Text = "0";
            Label05_Day2.Text = "0";
            Label06_Day2.Text = "0";
            Label07_Day2.Text = "0";
            Label08_Day2.Text = "0";
            Label09_Day2.Text = "0";
            Label10_Day2.Text = "0";
            Label11_Day2.Text = "0";
            Label12_Day2.Text = "0";
            Label13_Day2.Text = "0";
            Label14_Day2.Text = "0";
            Label15_Day2.Text = "0";
            Label16_Day2.Text = "0";
            Label17_Day2.Text = "0";
            Label18_Day2.Text = "0";
            Label19_Day2.Text = "0";
            Label20_Day2.Text = "0";
            Label21_Day2.Text = "0";
            Label22_Day2.Text = "0";
            Label23_Day2.Text = "0";
            Label24_Day2.Text = "0";
            Label25_Day2.Text = "0";
            Label26_Day2.Text = "0";
            Label27_Day2.Text = "0";
            Label28_Day2.Text = "0";
            Label29_Day2.Text = "0";

            Label01_Day7.Text = "0";
            Label02_Day7.Text = "0";
            Label03_Day7.Text = "0";
            Label04_Day7.Text = "0";
            Label05_Day7.Text = "0";
            Label06_Day7.Text = "0";
            Label07_Day7.Text = "0";
            Label08_Day7.Text = "0";
            Label09_Day7.Text = "0";
            Label10_Day7.Text = "0";
            Label11_Day7.Text = "0";
            Label12_Day7.Text = "0";
            Label13_Day7.Text = "0";
            Label14_Day7.Text = "0";
            Label15_Day7.Text = "0";
            Label16_Day7.Text = "0";
            Label17_Day7.Text = "0";
            Label18_Day7.Text = "0";
            Label19_Day7.Text = "0";
            Label20_Day7.Text = "0";
            Label21_Day7.Text = "0";
            Label22_Day7.Text = "0";
            Label23_Day7.Text = "0";
            Label24_Day7.Text = "0";
            Label25_Day7.Text = "0";
            Label26_Day7.Text = "0";
            Label27_Day7.Text = "0";
            Label28_Day7.Text = "0";
            Label29_Day7.Text = "0";

            string StrLabel10_Day2 = "0";
            string StrLabel10_Day7 = "0";
            string StrLabel15_Day2 = "0";
            string StrLabel15_Day7 = "0";
            string StrLabel16_Day2 = "0";
            string StrLabel16_Day7 = "0";

            if (itemBudget != null)
            {
                string billData = itemBudget["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentity> obj = Serializer.Deserialize<List<fsentity>>(billData);

                var objentity = obj as List<fsentity>;

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "PL03010101-1")
                    {
                        Graph12_Day13.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));

                        switch (month)
                        {
                            case "1":
                                Label01_Day2.Text = p.Jan.ToString();
                                Label01_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label01_Day2.Text = p.Feb.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label01_Day2.Text = p.Mar.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label01_Day2.Text = p.Apr.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label01_Day2.Text = p.May.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label01_Day2.Text = p.Jun.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label01_Day2.Text = p.Jul.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label01_Day2.Text = p.Aug.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label01_Day2.Text = p.Sep.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label01_Day2.Text = p.Oct.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label01_Day2.Text = p.Nov.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label01_Day2.Text = p.Dec.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03010101-2")
                    {
                        switch (month)
                        {
                            case "1":
                                Label02_Day2.Text = p.Jan.ToString();
                                Label02_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label02_Day2.Text = p.Feb.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label02_Day2.Text = p.Mar.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label02_Day2.Text = p.Apr.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label02_Day2.Text = p.May.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label02_Day2.Text = p.Jun.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label02_Day2.Text = p.Jul.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label02_Day2.Text = p.Aug.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label02_Day2.Text = p.Sep.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label02_Day2.Text = p.Oct.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label02_Day2.Text = p.Nov.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label02_Day2.Text = p.Dec.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03010000")
                    {
                        switch (month)
                        {
                            case "1":
                                Label03_Day2.Text = p.Jan.ToString();
                                Label03_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label03_Day2.Text = p.Feb.ToString();
                                Label03_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label03_Day2.Text = p.Mar.ToString();
                                Label03_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label03_Day2.Text = p.Apr.ToString();
                                Label03_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label03_Day2.Text = p.May.ToString();
                                Label03_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label03_Day2.Text = p.Jun.ToString();
                                Label03_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label03_Day2.Text = p.Jul.ToString();
                                Label03_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label03_Day2.Text = p.Aug.ToString();
                                Label03_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label03_Day2.Text = p.Sep.ToString();
                                Label03_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label03_Day2.Text = p.Oct.ToString();
                                Label03_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label03_Day2.Text = p.Nov.ToString();
                                Label03_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label03_Day2.Text = p.Dec.ToString();
                                Label03_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03010102")
                    {
                        Graph09_Day13.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));

                        switch (month)
                        {
                            case "1":
                                Label04_Day2.Text = p.Jan.ToString();
                                Label04_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label04_Day2.Text = p.Feb.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label04_Day2.Text = p.Mar.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label04_Day2.Text = p.Apr.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label04_Day2.Text = p.May.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label04_Day2.Text = p.Jun.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label04_Day2.Text = p.Jul.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label04_Day2.Text = p.Aug.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label04_Day2.Text = p.Sep.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label04_Day2.Text = p.Oct.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label04_Day2.Text = p.Nov.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label04_Day2.Text = p.Dec.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03010102-1")
                    {
                        switch (month)
                        {
                            case "1":
                                Label05_Day2.Text = p.Jan.ToString();
                                Label05_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label05_Day2.Text = p.Feb.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label05_Day2.Text = p.Mar.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label05_Day2.Text = p.Apr.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label05_Day2.Text = p.May.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label05_Day2.Text = p.Jun.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label05_Day2.Text = p.Jul.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label05_Day2.Text = p.Aug.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label05_Day2.Text = p.Sep.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label05_Day2.Text = p.Oct.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label05_Day2.Text = p.Nov.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label05_Day2.Text = p.Dec.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03010102-2")
                    {
                        switch (month)
                        {
                            case "1":
                                Label06_Day2.Text = p.Jan.ToString();
                                Label06_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label06_Day2.Text = p.Feb.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label06_Day2.Text = p.Mar.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label06_Day2.Text = p.Apr.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label06_Day2.Text = p.May.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label06_Day2.Text = p.Jun.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label06_Day2.Text = p.Jul.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label06_Day2.Text = p.Aug.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label06_Day2.Text = p.Sep.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label06_Day2.Text = p.Oct.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label06_Day2.Text = p.Nov.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label06_Day2.Text = p.Dec.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03010105")
                    {
                        switch (month)
                        {
                            case "1":
                                Label07_Day2.Text = p.Jan.ToString();
                                Label07_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label07_Day2.Text = p.Feb.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label07_Day2.Text = p.Mar.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label07_Day2.Text = p.Apr.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label07_Day2.Text = p.May.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label07_Day2.Text = p.Jun.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label07_Day2.Text = p.Jul.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label07_Day2.Text = p.Aug.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label07_Day2.Text = p.Sep.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label07_Day2.Text = p.Oct.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label07_Day2.Text = p.Nov.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label07_Day2.Text = p.Dec.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03010106")
                    {
                        if (Label04_Day7.Text == "0" || Label04_Day7.Text == "0.00")
                        {
                            Label08_Day7.Text = "0";
                        }
                        else
                        {
                            Label08_Day7.Text = ((Convert.ToDecimal(Label07_Day7.Text) / Convert.ToDecimal(Label04_Day7.Text)) * 100).ToString("n");
                        }


                        switch (month)
                        {
                            case "1":
                                Label08_Day2.Text = p.Jan.ToString();
                                //Label08_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label08_Day2.Text = p.Feb.ToString();
                                //Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label08_Day2.Text = p.Mar.ToString();
                                //Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label08_Day2.Text = p.Apr.ToString();
                                //Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label08_Day2.Text = p.May.ToString();
                                //Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label08_Day2.Text = p.Jun.ToString();
                                //Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label08_Day2.Text = p.Jul.ToString();
                                //Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label08_Day2.Text = p.Aug.ToString();
                                //Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label08_Day2.Text = p.Sep.ToString();
                                //Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label08_Day2.Text = p.Oct.ToString();
                                //Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label08_Day2.Text = p.Nov.ToString();
                                //Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label08_Day2.Text = p.Dec.ToString();
                                //Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03010205")
                    {
                        switch (month)
                        {
                            case "1":
                                Label09_Day2.Text = p.Jan.ToString();
                                Label09_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label09_Day2.Text = p.Feb.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label09_Day2.Text = p.Mar.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label09_Day2.Text = p.Apr.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label09_Day2.Text = p.May.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label09_Day2.Text = p.Jun.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label09_Day2.Text = p.Jul.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label09_Day2.Text = p.Aug.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label09_Day2.Text = p.Sep.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label09_Day2.Text = p.Oct.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label09_Day2.Text = p.Nov.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label09_Day2.Text = p.Dec.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03020101")
                    {
                        switch (month)
                        {
                            case "1":
                                StrLabel10_Day2 = p.Jan.ToString();
                                StrLabel10_Day7 = p.Jan.ToString();
                                break;
                            case "2":
                                StrLabel10_Day2 = p.Feb.ToString();
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                StrLabel10_Day2 = p.Mar.ToString();
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                StrLabel10_Day2 = p.Apr.ToString();
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                StrLabel10_Day2 = p.May.ToString();
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                StrLabel10_Day2 = p.Jun.ToString();
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                StrLabel10_Day2 = p.Jul.ToString();
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                StrLabel10_Day2 = p.Aug.ToString();
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                StrLabel10_Day2 = p.Sep.ToString();
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                StrLabel10_Day2 = p.Oct.ToString();
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                StrLabel10_Day2 = p.Nov.ToString();
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                StrLabel10_Day2 = p.Dec.ToString();
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03030101")
                    {
                        switch (month)
                        {
                            case "1":
                                Label11_Day2.Text = p.Jan.ToString();
                                Label11_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label11_Day2.Text = p.Feb.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label11_Day2.Text = p.Mar.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label11_Day2.Text = p.Apr.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label11_Day2.Text = p.May.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label11_Day2.Text = p.Jun.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label11_Day2.Text = p.Jul.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label11_Day2.Text = p.Aug.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label11_Day2.Text = p.Sep.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label11_Day2.Text = p.Oct.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label11_Day2.Text = p.Nov.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label11_Day2.Text = p.Dec.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03020201")
                    {
                        switch (month)
                        {
                            case "1":
                                Label12_Day2.Text = p.Jan.ToString();
                                Label12_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label12_Day2.Text = p.Feb.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label12_Day2.Text = p.Mar.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label12_Day2.Text = p.Apr.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label12_Day2.Text = p.May.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label12_Day2.Text = p.Jun.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label12_Day2.Text = p.Jul.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label12_Day2.Text = p.Aug.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label12_Day2.Text = p.Sep.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label12_Day2.Text = p.Oct.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label12_Day2.Text = p.Nov.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label12_Day2.Text = p.Dec.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03040101")
                    {
                        switch (month)
                        {
                            case "1":
                                Label13_Day2.Text = p.Jan.ToString();
                                Label13_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label13_Day2.Text = p.Feb.ToString();
                                Label13_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label13_Day2.Text = p.Mar.ToString();
                                Label13_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label13_Day2.Text = p.Apr.ToString();
                                Label13_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label13_Day2.Text = p.May.ToString();
                                Label13_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label13_Day2.Text = p.Jun.ToString();
                                Label13_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label13_Day2.Text = p.Jul.ToString();
                                Label13_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label13_Day2.Text = p.Aug.ToString();
                                Label13_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label13_Day2.Text = p.Sep.ToString();
                                Label13_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label13_Day2.Text = p.Oct.ToString();
                                Label13_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label13_Day2.Text = p.Nov.ToString();
                                Label13_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label13_Day2.Text = p.Dec.ToString();
                                Label13_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    //if (p.accountcode == "PL03040102")
                    //{
                    //    if ((Convert.ToDecimal(Label04_Day7.Text) + Convert.ToDecimal(Label09_Day7.Text)).ToString() == "0" || (Convert.ToDecimal(Label04_Day7.Text) + Convert.ToDecimal(Label09_Day7.Text)).ToString() == "0.00")
                    //    {
                    //        Label14_Day7.Text = "0";
                    //    }
                    //    else
                    //    {
                    //        Label14_Day7.Text = ((Convert.ToDecimal(Label13_Day7.Text) / (Convert.ToDecimal(Label04_Day7.Text) + Convert.ToDecimal(Label09_Day7.Text))) * 100).ToString("n");
                    //    }
                    //    switch (month)
                    //    {
                    //        case "1":
                    //            Label14_Day2.Text = p.Jan.ToString();
                    //            //Label14_Day7.Text = p.Jan.ToString();
                    //            break;
                    //        case "2":
                    //            Label14_Day2.Text = p.Feb.ToString();
                    //            //Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                    //            break;
                    //        case "3":
                    //            Label14_Day2.Text = p.Mar.ToString();
                    //            //Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                    //            break;
                    //        case "4":
                    //            Label14_Day2.Text = p.Apr.ToString();
                    //            //Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                    //            break;
                    //        case "5":
                    //            Label14_Day2.Text = p.May.ToString();
                    //            //Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                    //            break;
                    //        case "6":
                    //            Label14_Day2.Text = p.Jun.ToString();
                    //            //Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                    //            break;
                    //        case "7":
                    //            Label14_Day2.Text = p.Jul.ToString();
                    //            //Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                    //            break;
                    //        case "8":
                    //            Label14_Day2.Text = p.Aug.ToString();
                    //            //Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                    //            break;
                    //        case "9":
                    //            Label14_Day2.Text = p.Sep.ToString();
                    //            //Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                    //            break;
                    //        case "10":
                    //            Label14_Day2.Text = p.Oct.ToString();
                    //            //Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                    //            break;
                    //        case "11":
                    //            Label14_Day2.Text = p.Nov.ToString();
                    //            //Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                    //            break;
                    //        case "12":
                    //            Label14_Day2.Text = p.Dec.ToString();
                    //            //Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                    //            break;
                    //        default:
                    //            break;
                    //    }
                    //}
                    if (p.accountcode == "PL03020104")
                    {
                        switch (month)
                        {
                            case "1":
                                StrLabel15_Day2 = p.Jan.ToString();
                                StrLabel15_Day7 = p.Jan.ToString();
                                break;
                            case "2":
                                StrLabel15_Day2 = p.Feb.ToString();
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                StrLabel15_Day2 = p.Mar.ToString();
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                StrLabel15_Day2 = p.Apr.ToString();
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                StrLabel15_Day2 = p.May.ToString();
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                StrLabel15_Day2 = p.Jun.ToString();
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                StrLabel15_Day2 = p.Jul.ToString();
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                StrLabel15_Day2 = p.Aug.ToString();
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                StrLabel15_Day2 = p.Sep.ToString();
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                StrLabel15_Day2 = p.Oct.ToString();
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                StrLabel15_Day2 = p.Nov.ToString();
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                StrLabel15_Day2 = p.Dec.ToString();
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03020107")
                    {
                        switch (month)
                        {
                            case "1":
                                StrLabel16_Day2 = p.Jan.ToString();
                                StrLabel16_Day7 = p.Jan.ToString();
                                break;
                            case "2":
                                StrLabel16_Day2 = p.Feb.ToString();
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                StrLabel16_Day2 = p.Mar.ToString();
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                StrLabel16_Day2 = p.Apr.ToString();
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                StrLabel16_Day2 = p.May.ToString();
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                StrLabel16_Day2 = p.Jun.ToString();
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                StrLabel16_Day2 = p.Jul.ToString();
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                StrLabel16_Day2 = p.Aug.ToString();
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                StrLabel16_Day2 = p.Sep.ToString();
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                StrLabel16_Day2 = p.Oct.ToString();
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                StrLabel16_Day2 = p.Nov.ToString();
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                StrLabel16_Day2 = p.Dec.ToString();
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }

                    //if (p.accountcode == "PL03050101")
                    //{
                    //    switch (month)
                    //    {
                    //        case "1":
                    //            Label17_Day2.Text = p.Jan.ToString();
                    //            Label17_Day7.Text = p.Jan.ToString();
                    //            break;
                    //        case "2":
                    //            Label17_Day2.Text = p.Feb.ToString();
                    //            Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                    //            break;
                    //        case "3":
                    //            Label17_Day2.Text = p.Mar.ToString();
                    //            Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                    //            break;
                    //        case "4":
                    //            Label17_Day2.Text = p.Apr.ToString();
                    //            Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                    //            break;
                    //        case "5":
                    //            Label17_Day2.Text = p.May.ToString();
                    //            Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                    //            break;
                    //        case "6":
                    //            Label17_Day2.Text = p.Jun.ToString();
                    //            Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                    //            break;
                    //        case "7":
                    //            Label17_Day2.Text = p.Jul.ToString();
                    //            Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                    //            break;
                    //        case "8":
                    //            Label17_Day2.Text = p.Aug.ToString();
                    //            Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                    //            break;
                    //        case "9":
                    //            Label17_Day2.Text = p.Sep.ToString();
                    //            Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                    //            break;
                    //        case "10":
                    //            Label17_Day2.Text = p.Oct.ToString();
                    //            Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                    //            break;
                    //        case "11":
                    //            Label17_Day2.Text = p.Nov.ToString();
                    //            Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                    //            break;
                    //        case "12":
                    //            Label17_Day2.Text = p.Dec.ToString();
                    //            Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                    //            break;
                    //        default:
                    //            break;
                    //    }
                    //}
                    if (p.accountcode == "PL03050102")
                    {
                        if ((Convert.ToDecimal(Label04_Day7.Text) + Convert.ToDecimal(Label09_Day7.Text)).ToString() == "0" || (Convert.ToDecimal(Label04_Day7.Text) + Convert.ToDecimal(Label09_Day7.Text)).ToString() == "0.00")
                        {
                            Label18_Day7.Text = "0";
                        }
                        else
                        {
                            Label18_Day7.Text = ((Convert.ToDecimal(Label17_Day7.Text) / (Convert.ToDecimal(Label04_Day7.Text) + Convert.ToDecimal(Label09_Day7.Text))) * 100).ToString("n");
                        }

                        switch (month)
                        {
                            case "1":
                                Label18_Day2.Text = p.Jan.ToString();
                                //Label18_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label18_Day2.Text = p.Feb.ToString();
                                //Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label18_Day2.Text = p.Mar.ToString();
                                //Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label18_Day2.Text = p.Apr.ToString();
                                //Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label18_Day2.Text = p.May.ToString();
                                //Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label18_Day2.Text = p.Jun.ToString();
                                //Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label18_Day2.Text = p.Jul.ToString();
                                //Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label18_Day2.Text = p.Aug.ToString();
                                //Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label18_Day2.Text = p.Sep.ToString();
                                //Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label18_Day2.Text = p.Oct.ToString();
                                //Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label18_Day2.Text = p.Nov.ToString();
                                //Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label18_Day2.Text = p.Dec.ToString();
                                //Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03020206")
                    {
                        switch (month)
                        {
                            case "1":
                                Label19_Day2.Text = p.Jan.ToString();
                                Label19_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label19_Day2.Text = p.Feb.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label19_Day2.Text = p.Mar.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label19_Day2.Text = p.Apr.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label19_Day2.Text = p.May.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label19_Day2.Text = p.Jun.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label19_Day2.Text = p.Jul.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label19_Day2.Text = p.Aug.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label19_Day2.Text = p.Sep.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label19_Day2.Text = p.Oct.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label19_Day2.Text = p.Nov.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label19_Day2.Text = p.Dec.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03060101")
                    {
                        Graph03_Day13.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));

                        switch (month)
                        {
                            case "1":
                                Label20_Day2.Text = p.Jan.ToString();
                                Label20_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label20_Day2.Text = p.Feb.ToString();
                                Label20_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label20_Day2.Text = p.Mar.ToString();
                                Label20_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label20_Day2.Text = p.Apr.ToString();
                                Label20_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label20_Day2.Text = p.May.ToString();
                                Label20_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label20_Day2.Text = p.Jun.ToString();
                                Label20_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label20_Day2.Text = p.Jul.ToString();
                                Label20_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label20_Day2.Text = p.Aug.ToString();
                                Label20_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label20_Day2.Text = p.Sep.ToString();
                                Label20_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label20_Day2.Text = p.Oct.ToString();
                                Label20_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label20_Day2.Text = p.Nov.ToString();
                                Label20_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label20_Day2.Text = p.Dec.ToString();
                                Label20_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    //if (p.accountcode == "PL03060102")
                    //{
                    //    if ((Convert.ToDecimal(Label04_Day7.Text) + Convert.ToDecimal(Label09_Day7.Text)).ToString() == "0" || (Convert.ToDecimal(Label04_Day7.Text) + Convert.ToDecimal(Label09_Day7.Text)).ToString() == "0.00")
                    //    {
                    //        Label21_Day7.Text = "0";
                    //    }
                    //    else
                    //    {
                    //        Label21_Day7.Text = ((Convert.ToDecimal(Label20_Day7.Text) / (Convert.ToDecimal(Label04_Day7.Text) + Convert.ToDecimal(Label09_Day7.Text))) * 100).ToString("n");
                    //    }

                    //    switch (month)
                    //    {
                    //        case "1":
                    //            Label21_Day2.Text = p.Jan.ToString();
                    //            //Label21_Day7.Text = p.Jan.ToString();
                    //            break;
                    //        case "2":
                    //            Label21_Day2.Text = p.Feb.ToString();
                    //            //Label21_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                    //            break;
                    //        case "3":
                    //            Label21_Day2.Text = p.Mar.ToString();
                    //            //Label21_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                    //            break;
                    //        case "4":
                    //            Label21_Day2.Text = p.Apr.ToString();
                    //            //Label21_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                    //            break;
                    //        case "5":
                    //            Label21_Day2.Text = p.May.ToString();
                    //            //Label21_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                    //            break;
                    //        case "6":
                    //            Label21_Day2.Text = p.Jun.ToString();
                    //            //Label21_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                    //            break;
                    //        case "7":
                    //            Label21_Day2.Text = p.Jul.ToString();
                    //            //Label21_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                    //            break;
                    //        case "8":
                    //            Label21_Day2.Text = p.Aug.ToString();
                    //            //Label21_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                    //            break;
                    //        case "9":
                    //            Label21_Day2.Text = p.Sep.ToString();
                    //            //Label21_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                    //            break;
                    //        case "10":
                    //            Label21_Day2.Text = p.Oct.ToString();
                    //            //Label21_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                    //            break;
                    //        case "11":
                    //            Label21_Day2.Text = p.Nov.ToString();
                    //            //Label21_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                    //            break;
                    //        case "12":
                    //            Label21_Day2.Text = p.Dec.ToString();
                    //            //Label21_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                    //            break;
                    //        default:
                    //            break;
                    //    }
                    //}
                    if (p.accountcode == "PL03020500")
                    {
                        switch (month)
                        {
                            case "1":
                                Label22_Day2.Text = p.Jan.ToString();
                                Label22_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label22_Day2.Text = p.Feb.ToString();
                                Label22_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label22_Day2.Text = p.Mar.ToString();
                                Label22_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label22_Day2.Text = p.Apr.ToString();
                                Label22_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label22_Day2.Text = p.May.ToString();
                                Label22_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label22_Day2.Text = p.Jun.ToString();
                                Label22_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label22_Day2.Text = p.Jul.ToString();
                                Label22_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label22_Day2.Text = p.Aug.ToString();
                                Label22_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label22_Day2.Text = p.Sep.ToString();
                                Label22_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label22_Day2.Text = p.Oct.ToString();
                                Label22_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label22_Day2.Text = p.Nov.ToString();
                                Label22_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label22_Day2.Text = p.Dec.ToString();
                                Label22_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03020300")
                    {
                        switch (month)
                        {
                            case "1":
                                Label23_Day2.Text = p.Jan.ToString();
                                Label23_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label23_Day2.Text = p.Feb.ToString();
                                Label23_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label23_Day2.Text = p.Mar.ToString();
                                Label23_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label23_Day2.Text = p.Apr.ToString();
                                Label23_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label23_Day2.Text = p.May.ToString();
                                Label23_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label23_Day2.Text = p.Jun.ToString();
                                Label23_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label23_Day2.Text = p.Jul.ToString();
                                Label23_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label23_Day2.Text = p.Aug.ToString();
                                Label23_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label23_Day2.Text = p.Sep.ToString();
                                Label23_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label23_Day2.Text = p.Oct.ToString();
                                Label23_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label23_Day2.Text = p.Nov.ToString();
                                Label23_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label23_Day2.Text = p.Dec.ToString();
                                Label23_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03070101")
                    {
                        switch (month)
                        {
                            case "1":
                                Label24_Day2.Text = p.Jan.ToString();
                                Label24_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label24_Day2.Text = p.Feb.ToString();
                                Label24_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label24_Day2.Text = p.Mar.ToString();
                                Label24_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label24_Day2.Text = p.Apr.ToString();
                                Label24_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label24_Day2.Text = p.May.ToString();
                                Label24_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label24_Day2.Text = p.Jun.ToString();
                                Label24_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label24_Day2.Text = p.Jul.ToString();
                                Label24_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label24_Day2.Text = p.Aug.ToString();
                                Label24_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label24_Day2.Text = p.Sep.ToString();
                                Label24_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label24_Day2.Text = p.Oct.ToString();
                                Label24_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label24_Day2.Text = p.Nov.ToString();
                                Label24_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label24_Day2.Text = p.Dec.ToString();
                                Label24_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03020400")
                    {
                        switch (month)
                        {
                            case "1":
                                Label25_Day2.Text = p.Jan.ToString();
                                Label25_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label25_Day2.Text = p.Feb.ToString();
                                Label25_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label25_Day2.Text = p.Mar.ToString();
                                Label25_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label25_Day2.Text = p.Apr.ToString();
                                Label25_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label25_Day2.Text = p.May.ToString();
                                Label25_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label25_Day2.Text = p.Jun.ToString();
                                Label25_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label25_Day2.Text = p.Jul.ToString();
                                Label25_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label25_Day2.Text = p.Aug.ToString();
                                Label25_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label25_Day2.Text = p.Sep.ToString();
                                Label25_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label25_Day2.Text = p.Oct.ToString();
                                Label25_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label25_Day2.Text = p.Nov.ToString();
                                Label25_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label25_Day2.Text = p.Dec.ToString();
                                Label25_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03020600")
                    {
                        switch (month)
                        {
                            case "1":
                                Label26_Day2.Text = p.Jan.ToString();
                                Label26_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label26_Day2.Text = p.Feb.ToString();
                                Label26_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label26_Day2.Text = p.Mar.ToString();
                                Label26_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label26_Day2.Text = p.Apr.ToString();
                                Label26_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label26_Day2.Text = p.May.ToString();
                                Label26_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label26_Day2.Text = p.Jun.ToString();
                                Label26_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label26_Day2.Text = p.Jul.ToString();
                                Label26_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label26_Day2.Text = p.Aug.ToString();
                                Label26_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label26_Day2.Text = p.Sep.ToString();
                                Label26_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label26_Day2.Text = p.Oct.ToString();
                                Label26_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label26_Day2.Text = p.Nov.ToString();
                                Label26_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label26_Day2.Text = p.Dec.ToString();
                                Label26_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "PL03080101")
                    {
                        switch (month)
                        {
                            case "1":
                                Label27_Day2.Text = p.Jan.ToString();
                                Label27_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label27_Day2.Text = p.Feb.ToString();
                                Label27_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label27_Day2.Text = p.Mar.ToString();
                                Label27_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label27_Day2.Text = p.Apr.ToString();
                                Label27_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label27_Day2.Text = p.May.ToString();
                                Label27_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label27_Day2.Text = p.Jun.ToString();
                                Label27_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label27_Day2.Text = p.Jul.ToString();
                                Label27_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label27_Day2.Text = p.Aug.ToString();
                                Label27_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label27_Day2.Text = p.Sep.ToString();
                                Label27_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label27_Day2.Text = p.Oct.ToString();
                                Label27_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label27_Day2.Text = p.Nov.ToString();
                                Label27_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label27_Day2.Text = p.Dec.ToString();
                                Label27_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    
                    //if (p.accountcode == "PL03080102")
                    //{
                    //    if ((Convert.ToDecimal(Label04_Day7.Text) + Convert.ToDecimal(Label09_Day7.Text)).ToString() == "0" || (Convert.ToDecimal(Label04_Day7.Text) + Convert.ToDecimal(Label09_Day7.Text)).ToString() == "0.00")
                    //    {
                    //        Label28_Day7.Text = "0";
                    //    }
                    //    else
                    //    {
                    //        Label28_Day7.Text = ((Convert.ToDecimal(Label27_Day7.Text) / (Convert.ToDecimal(Label04_Day7.Text) + Convert.ToDecimal(Label09_Day7.Text))) * 100).ToString("n");
                    //    }

                    //    switch (month)
                    //    {
                    //        case "1":
                    //            Label28_Day2.Text = p.Jan.ToString();
                    //            //Label28_Day7.Text = p.Jan.ToString();
                    //            break;
                    //        case "2":
                    //            Label28_Day2.Text = p.Feb.ToString();
                    //            //Label28_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                    //            break;
                    //        case "3":
                    //            Label28_Day2.Text = p.Mar.ToString();
                    //            //Label28_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                    //            break;
                    //        case "4":
                    //            Label28_Day2.Text = p.Apr.ToString();
                    //            //Label28_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                    //            break;
                    //        case "5":
                    //            Label28_Day2.Text = p.May.ToString();
                    //            //Label28_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                    //            break;
                    //        case "6":
                    //            Label28_Day2.Text = p.Jun.ToString();
                    //            //Label28_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                    //            break;
                    //        case "7":
                    //            Label28_Day2.Text = p.Jul.ToString();
                    //            //Label28_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                    //            break;
                    //        case "8":
                    //            Label28_Day2.Text = p.Aug.ToString();
                    //            //Label28_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                    //            break;
                    //        case "9":
                    //            Label28_Day2.Text = p.Sep.ToString();
                    //            //Label28_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                    //            break;
                    //        case "10":
                    //            Label28_Day2.Text = p.Oct.ToString();
                    //            //Label28_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                    //            break;
                    //        case "11":
                    //            Label28_Day2.Text = p.Nov.ToString();
                    //            //Label28_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                    //            break;
                    //        case "12":
                    //            Label28_Day2.Text = p.Dec.ToString();
                    //            //Label28_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                    //            break;
                    //        default:
                    //            break;
                    //    }
                    //}
                    if (p.accountcode == "PL03090101")
                    {
                        switch (month)
                        {
                            case "1":
                                Label29_Day2.Text = p.Jan.ToString();
                                Label29_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label29_Day2.Text = p.Feb.ToString();
                                Label29_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label29_Day2.Text = p.Mar.ToString();
                                Label29_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label29_Day2.Text = p.Apr.ToString();
                                Label29_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label29_Day2.Text = p.May.ToString();
                                Label29_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label29_Day2.Text = p.Jun.ToString();
                                Label29_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label29_Day2.Text = p.Jul.ToString();
                                Label29_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label29_Day2.Text = p.Aug.ToString();
                                Label29_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label29_Day2.Text = p.Sep.ToString();
                                Label29_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label29_Day2.Text = p.Oct.ToString();
                                Label29_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label29_Day2.Text = p.Nov.ToString();
                                Label29_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label29_Day2.Text = p.Dec.ToString();
                                Label29_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                });

                //mike get budget value

                var FC03010504 = BusinessService.GetBudgetValue(itemBudgetFC, "FC03010504", month);
                var FC03010505 = BusinessService.GetBudgetValue(itemBudgetFC, "FC03010505", month);
                var PL03010300 = BusinessService.GetBudgetValue(itemBudget, "PL03010300", month).ToString();

                Label17_Day2.Text = (BusinessService.GetBudgetValue(itemBudget, "PL03050101", month) + FC03010504 + FC03010505).ToString();
                Label18_Day2.Text = Utilities.Division(Label17_Day2.Text, PL03010300, false);

                Label20_Day2.Text = (BusinessService.GetBudgetValue(itemBudget, "PL03060101", month) + FC03010504 + FC03010505).ToString();
                Label21_Day2.Text = Utilities.Division(Label20_Day2.Text, PL03010300, false);

                Label22_Day2.Text = (BusinessService.GetBudgetValue(itemBudget, "PL03020500", month) - FC03010504 - FC03010505).ToString();



                var YTD_FC03010504 = BusinessService.GetBudgetYTDValue(itemBudgetFC, "FC03010504", month);
                var YTD_FC03010505 = BusinessService.GetBudgetYTDValue(itemBudgetFC, "FC03010505", month);
                var YTD_PL03010300 = BusinessService.GetBudgetYTDValue(itemBudget, "PL03010300", month).ToString();
                var PL02010300 = BusinessService.GetYTDValue(item, "PL02010300").ToString();

                Label17_Day7.Text = (BusinessService.GetBudgetYTDValue(itemBudget, "PL03050101", month) + YTD_FC03010504 + YTD_FC03010505).ToString();
                Label18_Day7.Text = Utilities.Division(Label17_Day7.Text, YTD_PL03010300, false);

                Label20_Day7.Text = (BusinessService.GetBudgetYTDValue(itemBudget, "PL03060101", month) + YTD_FC03010504 + YTD_FC03010505).ToString();
                Label21_Day7.Text = Utilities.Division(Label20_Day7.Text, YTD_PL03010300, false);

                Label22_Day7.Text = (BusinessService.GetBudgetYTDValue(itemBudget, "PL03020500", month) - YTD_FC03010504 - YTD_FC03010505).ToString();



                Label08_Day7.Text = Utilities.Division(BusinessService.GetBudgetYTDValue(itemBudget, "PL03010105", month).ToString(),
                    BusinessService.GetBudgetYTDValue(itemBudget, "PL03010102", month).ToString(), false);


                Label08_Day2.Text = Utilities.Division(Label07_Day2.Text, Label04_Day2.Text, false);
                Label14_Day2.Text = Utilities.Division(Label13_Day2.Text, PL03010300, false);
             //  Label18_Day2.Text = Utilities.Division(Label17_Day2.Text, PL03010300);
             //   Label21_Day2.Text = Utilities.Division(Label20_Day2.Text, Label04_Day2.Text);
                Label28_Day2.Text = Utilities.Division(Label27_Day2.Text, PL03010300, false);

                Label08_Day7.Text = Utilities.Division(Label07_Day7.Text, Label04_Day7.Text, false);
                Label14_Day7.Text = Utilities.Division(Label13_Day7.Text, YTD_PL03010300, false);
              //  Label18_Day7.Text = Utilities.Division(Label17_Day7.Text, YTD_PL03010300);
              //  Label21_Day7.Text = Utilities.Division(Label20_Day7.Text, Label04_Day7.Text);
                Label28_Day7.Text = Utilities.Division(Label27_Day7.Text, YTD_PL03010300, false);

                Label09_Day1.Text = (BusinessService.decimalParse(BusinessService.GetFieldValue(itemN_1,"PL02010205") + "")
                    + BusinessService.decimalParse(BusinessService.GetFieldValue(itemN_1, "PL02010400") + "")) + "";
                Label09_Day2.Text = BusinessService.GetBudgetValue(itemBudget, new string[] { "PL03010205", "PL03010400" }, "({0})+({1})", month).ToString();
                Label09_Day3.Text = (BusinessService.decimalParse(BusinessService.GetFieldValue(item, "PL02010205") + "")
                    + BusinessService.decimalParse(BusinessService.GetFieldValue(item, "PL02010400") + "")) + ""; 

                Label09_Day6.Text = BusinessService.GetYTDValue(itemN_1, new string[] { "PL02010205", "PL02010400" }, "({0})+({1})") + "";
                Label09_Day7.Text = BusinessService.GetBudgetYTDValue(itemBudget,int.Parse( month), new string[] { "PL03010205", "PL03010400" }, "({0})+({1})").ToString();
                Label09_Day8.Text = BusinessService.GetYTDValue(item, new string[] { "PL02010205", "PL02010400" }, "({0})+({1})") + "";
            }


            if (itemBudgetFC != null)
            {
                string billData = itemBudgetFC["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentity> obj = Serializer.Deserialize<List<fsentity>>(billData);

                var objentity = obj as List<fsentity>;

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "FC03010000")
                    {

                        Graph06_Day13.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                    }

                    if (p.accountcode == "FC03010501")
                    {
                        switch (month)
                        {
                            case "1":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Jan.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()));
                                break;
                            case "2":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Feb.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Mar.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Apr.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.May.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Jun.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Jul.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Aug.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Sep.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Oct.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Nov.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Dec.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010502")
                    {
                        switch (month)
                        {
                            case "1":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Jan.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()));
                                break;
                            case "2":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Feb.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Mar.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Apr.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.May.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Jun.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Jul.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Aug.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Sep.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Oct.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Nov.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Dec.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010503")
                    {
                        switch (month)
                        {
                            case "1":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Jan.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()));
                                break;
                            case "2":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Feb.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Mar.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Apr.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.May.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Jun.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Jul.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Aug.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Sep.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Oct.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Nov.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                StrLabel10_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day2) + Convert.ToDecimal(p.Dec.ToString()));
                                StrLabel10_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel10_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010504")
                    {
                        switch (month)
                        {
                            case "1":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Jan.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()));
                                break;
                            case "2":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Feb.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Mar.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Apr.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.May.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Jun.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Jul.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Aug.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Sep.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Oct.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Nov.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Dec.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010505")
                    {
                        switch (month)
                        {
                            case "1":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Jan.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()));
                                break;
                            case "2":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Feb.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Mar.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Apr.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.May.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Jun.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Jul.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Aug.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Sep.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Oct.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Nov.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                StrLabel15_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day2) + Convert.ToDecimal(p.Dec.ToString()));
                                StrLabel15_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel15_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010506")
                    {
                        switch (month)
                        {
                            case "1":
                                StrLabel16_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day2) + Convert.ToDecimal(p.Jan.ToString()));
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day7) + Convert.ToDecimal(p.Jan.ToString()));
                                break;
                            case "2":
                                StrLabel16_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day2) + Convert.ToDecimal(p.Feb.ToString()));
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                StrLabel16_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day2) + Convert.ToDecimal(p.Mar.ToString()));
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                StrLabel16_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day2) + Convert.ToDecimal(p.Apr.ToString()));
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                StrLabel16_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day2) + Convert.ToDecimal(p.May.ToString()));
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                StrLabel16_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day2) + Convert.ToDecimal(p.Jun.ToString()));
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                StrLabel16_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day2) + Convert.ToDecimal(p.Jul.ToString()));
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                StrLabel16_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day2) + Convert.ToDecimal(p.Aug.ToString()));
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                StrLabel16_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day2) + Convert.ToDecimal(p.Sep.ToString()));
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                StrLabel16_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day2) + Convert.ToDecimal(p.Oct.ToString()));
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                StrLabel16_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day2) + Convert.ToDecimal(p.Nov.ToString()));
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                StrLabel16_Day2 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day2) + Convert.ToDecimal(p.Dec.ToString()));
                                StrLabel16_Day7 = Convert.ToString(Convert.ToDecimal(StrLabel16_Day7) + Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                });
            }

            Label10_Day2.Text = StrLabel10_Day2;
            Label10_Day7.Text = StrLabel10_Day7;
            Label15_Day2.Text = StrLabel15_Day2;
            Label15_Day7.Text = StrLabel15_Day7;
            Label16_Day2.Text = StrLabel16_Day2;
            Label16_Day7.Text = StrLabel16_Day7;

            Label01_Day4.Text = Convert.ToString(Convert.ToDecimal(Label01_Day3.Text) - Convert.ToDecimal(Label01_Day2.Text));
            Label02_Day4.Text = Convert.ToString(Convert.ToDecimal(Label02_Day3.Text) - Convert.ToDecimal(Label02_Day2.Text));
            Label03_Day4.Text = Convert.ToString(Convert.ToDecimal(Label03_Day3.Text) - Convert.ToDecimal(Label03_Day2.Text));
            Label04_Day4.Text = Convert.ToString(Convert.ToDecimal(Label04_Day3.Text) - Convert.ToDecimal(Label04_Day2.Text));
            Label05_Day4.Text = Convert.ToString(Convert.ToDecimal(Label05_Day3.Text) - Convert.ToDecimal(Label05_Day2.Text));
            Label06_Day4.Text = Convert.ToString(Convert.ToDecimal(Label06_Day3.Text) - Convert.ToDecimal(Label06_Day2.Text));
            Label07_Day4.Text = Convert.ToString(Convert.ToDecimal(Label07_Day3.Text) - Convert.ToDecimal(Label07_Day2.Text));
            Label08_Day4.Text = Convert.ToString(Convert.ToDecimal(Label08_Day3.Text) - Convert.ToDecimal(Label08_Day2.Text));
            Label09_Day4.Text = Convert.ToString(Convert.ToDecimal(Label09_Day3.Text) - Convert.ToDecimal(Label09_Day2.Text));
            Label10_Day4.Text = Convert.ToString(Convert.ToDecimal(Label10_Day3.Text) - Convert.ToDecimal(Label10_Day2.Text));
            Label11_Day4.Text = Convert.ToString(Convert.ToDecimal(Label11_Day3.Text) - Convert.ToDecimal(Label11_Day2.Text));
            Label12_Day4.Text = Convert.ToString(Convert.ToDecimal(Label12_Day3.Text) - Convert.ToDecimal(Label12_Day2.Text));
            Label13_Day4.Text = Convert.ToString(Convert.ToDecimal(Label13_Day3.Text) - Convert.ToDecimal(Label13_Day2.Text));
            Label14_Day4.Text = Convert.ToString(Convert.ToDecimal(Label14_Day3.Text) - Convert.ToDecimal(Label14_Day2.Text));
            Label15_Day4.Text = Convert.ToString(Convert.ToDecimal(Label15_Day3.Text) - Convert.ToDecimal(Label15_Day2.Text));
            Label16_Day4.Text = Convert.ToString(Convert.ToDecimal(Label16_Day3.Text) - Convert.ToDecimal(Label16_Day2.Text));
            Label17_Day4.Text = Convert.ToString(Convert.ToDecimal(Label17_Day3.Text) - Convert.ToDecimal(Label17_Day2.Text));
            Label18_Day4.Text = Convert.ToString(Convert.ToDecimal(Label18_Day3.Text) - Convert.ToDecimal(Label18_Day2.Text));
            Label19_Day4.Text = Convert.ToString(Convert.ToDecimal(Label19_Day3.Text) - Convert.ToDecimal(Label19_Day2.Text));
            Label20_Day4.Text = Convert.ToString(Convert.ToDecimal(Label20_Day3.Text) - Convert.ToDecimal(Label20_Day2.Text));
            Label21_Day4.Text = Convert.ToString(Convert.ToDecimal(Label21_Day3.Text) - Convert.ToDecimal(Label21_Day2.Text));
            Label22_Day4.Text = Convert.ToString(Convert.ToDecimal(Label22_Day3.Text) - Convert.ToDecimal(Label22_Day2.Text));
            Label23_Day4.Text = Convert.ToString(Convert.ToDecimal(Label23_Day3.Text) - Convert.ToDecimal(Label23_Day2.Text));
            Label24_Day4.Text = Convert.ToString(Convert.ToDecimal(Label24_Day3.Text) - Convert.ToDecimal(Label24_Day2.Text));
            Label25_Day4.Text = Convert.ToString(Convert.ToDecimal(Label25_Day3.Text) - Convert.ToDecimal(Label25_Day2.Text));
            Label26_Day4.Text = Convert.ToString(Convert.ToDecimal(Label26_Day3.Text) - Convert.ToDecimal(Label26_Day2.Text));
            Label27_Day4.Text = Convert.ToString(Convert.ToDecimal(Label27_Day3.Text) - Convert.ToDecimal(Label27_Day2.Text));
            Label28_Day4.Text = Convert.ToString(Convert.ToDecimal(Label28_Day3.Text) - Convert.ToDecimal(Label28_Day2.Text));
            Label29_Day4.Text = Convert.ToString(Convert.ToDecimal(Label29_Day3.Text) - Convert.ToDecimal(Label29_Day2.Text));

            Label01_Day5.Text = Convert.ToString(Convert.ToDecimal(Label01_Day3.Text) - Convert.ToDecimal(Label01_Day1.Text));
            Label02_Day5.Text = Convert.ToString(Convert.ToDecimal(Label02_Day3.Text) - Convert.ToDecimal(Label02_Day1.Text));
            Label03_Day5.Text = Convert.ToString(Convert.ToDecimal(Label03_Day3.Text) - Convert.ToDecimal(Label03_Day1.Text));
            Label04_Day5.Text = Convert.ToString(Convert.ToDecimal(Label04_Day3.Text) - Convert.ToDecimal(Label04_Day1.Text));
            Label05_Day5.Text = Convert.ToString(Convert.ToDecimal(Label05_Day3.Text) - Convert.ToDecimal(Label05_Day1.Text));
            Label06_Day5.Text = Convert.ToString(Convert.ToDecimal(Label06_Day3.Text) - Convert.ToDecimal(Label06_Day1.Text));
            Label07_Day5.Text = Convert.ToString(Convert.ToDecimal(Label07_Day3.Text) - Convert.ToDecimal(Label07_Day1.Text));
            Label08_Day5.Text = Convert.ToString(Convert.ToDecimal(Label08_Day3.Text) - Convert.ToDecimal(Label08_Day1.Text));
            Label09_Day5.Text = Convert.ToString(Convert.ToDecimal(Label09_Day3.Text) - Convert.ToDecimal(Label09_Day1.Text));
            Label10_Day5.Text = Convert.ToString(Convert.ToDecimal(Label10_Day3.Text) - Convert.ToDecimal(Label10_Day1.Text));
            Label11_Day5.Text = Convert.ToString(Convert.ToDecimal(Label11_Day3.Text) - Convert.ToDecimal(Label11_Day1.Text));
            Label12_Day5.Text = Convert.ToString(Convert.ToDecimal(Label12_Day3.Text) - Convert.ToDecimal(Label12_Day1.Text));
            Label13_Day5.Text = Convert.ToString(Convert.ToDecimal(Label13_Day3.Text) - Convert.ToDecimal(Label13_Day1.Text));
            Label14_Day5.Text = Convert.ToString(Convert.ToDecimal(Label14_Day3.Text) - Convert.ToDecimal(Label14_Day1.Text));
            Label15_Day5.Text = Convert.ToString(Convert.ToDecimal(Label15_Day3.Text) - Convert.ToDecimal(Label15_Day1.Text));
            Label16_Day5.Text = Convert.ToString(Convert.ToDecimal(Label16_Day3.Text) - Convert.ToDecimal(Label16_Day1.Text));
            Label17_Day5.Text = Convert.ToString(Convert.ToDecimal(Label17_Day3.Text) - Convert.ToDecimal(Label17_Day1.Text));
            Label18_Day5.Text = Convert.ToString(Convert.ToDecimal(Label18_Day3.Text) - Convert.ToDecimal(Label18_Day1.Text));
            Label19_Day5.Text = Convert.ToString(Convert.ToDecimal(Label19_Day3.Text) - Convert.ToDecimal(Label19_Day1.Text));
            Label20_Day5.Text = Convert.ToString(Convert.ToDecimal(Label20_Day3.Text) - Convert.ToDecimal(Label20_Day1.Text));
            Label21_Day5.Text = Convert.ToString(Convert.ToDecimal(Label21_Day3.Text) - Convert.ToDecimal(Label21_Day1.Text));
            Label22_Day5.Text = Convert.ToString(Convert.ToDecimal(Label22_Day3.Text) - Convert.ToDecimal(Label22_Day1.Text));
            Label23_Day5.Text = Convert.ToString(Convert.ToDecimal(Label23_Day3.Text) - Convert.ToDecimal(Label23_Day1.Text));
            Label24_Day5.Text = Convert.ToString(Convert.ToDecimal(Label24_Day3.Text) - Convert.ToDecimal(Label24_Day1.Text));
            Label25_Day5.Text = Convert.ToString(Convert.ToDecimal(Label25_Day3.Text) - Convert.ToDecimal(Label25_Day1.Text));
            Label26_Day5.Text = Convert.ToString(Convert.ToDecimal(Label26_Day3.Text) - Convert.ToDecimal(Label26_Day1.Text));
            Label27_Day5.Text = Convert.ToString(Convert.ToDecimal(Label27_Day3.Text) - Convert.ToDecimal(Label27_Day1.Text));
            Label28_Day5.Text = Convert.ToString(Convert.ToDecimal(Label28_Day3.Text) - Convert.ToDecimal(Label28_Day1.Text));
            Label29_Day5.Text = Convert.ToString(Convert.ToDecimal(Label29_Day3.Text) - Convert.ToDecimal(Label29_Day1.Text));

            Label01_Day9.Text = Convert.ToString(Convert.ToDecimal(Label01_Day8.Text) - Convert.ToDecimal(Label01_Day7.Text));
            Label02_Day9.Text = Convert.ToString(Convert.ToDecimal(Label02_Day8.Text) - Convert.ToDecimal(Label02_Day7.Text));
            Label03_Day9.Text = Convert.ToString(Convert.ToDecimal(Label03_Day8.Text) - Convert.ToDecimal(Label03_Day7.Text));
            Label04_Day9.Text = Convert.ToString(Convert.ToDecimal(Label04_Day8.Text) - Convert.ToDecimal(Label04_Day7.Text));
            Label05_Day9.Text = Convert.ToString(Convert.ToDecimal(Label05_Day8.Text) - Convert.ToDecimal(Label05_Day7.Text));
            Label06_Day9.Text = Convert.ToString(Convert.ToDecimal(Label06_Day8.Text) - Convert.ToDecimal(Label06_Day7.Text));
            Label07_Day9.Text = Convert.ToString(Convert.ToDecimal(Label07_Day8.Text) - Convert.ToDecimal(Label07_Day7.Text));
            Label08_Day9.Text = Convert.ToString(Convert.ToDecimal(Label08_Day8.Text) - Convert.ToDecimal(Label08_Day7.Text));
            Label09_Day9.Text = Convert.ToString(Convert.ToDecimal(Label09_Day8.Text) - Convert.ToDecimal(Label09_Day7.Text));
            Label10_Day9.Text = Convert.ToString(Convert.ToDecimal(Label10_Day8.Text) - Convert.ToDecimal(Label10_Day7.Text));
            Label11_Day9.Text = Convert.ToString(Convert.ToDecimal(Label11_Day8.Text) - Convert.ToDecimal(Label11_Day7.Text));
            Label12_Day9.Text = Convert.ToString(Convert.ToDecimal(Label12_Day8.Text) - Convert.ToDecimal(Label12_Day7.Text));
            Label13_Day9.Text = Convert.ToString(Convert.ToDecimal(Label13_Day8.Text) - Convert.ToDecimal(Label13_Day7.Text));
            Label14_Day9.Text = Convert.ToString(Convert.ToDecimal(Label14_Day8.Text) - Convert.ToDecimal(Label14_Day7.Text));
            Label15_Day9.Text = Convert.ToString(Convert.ToDecimal(Label15_Day8.Text) - Convert.ToDecimal(Label15_Day7.Text));
            Label16_Day9.Text = Convert.ToString(Convert.ToDecimal(Label16_Day8.Text) - Convert.ToDecimal(Label16_Day7.Text));
            Label17_Day9.Text = Convert.ToString(Convert.ToDecimal(Label17_Day8.Text) - Convert.ToDecimal(Label17_Day7.Text));
            Label18_Day9.Text = Convert.ToString(Convert.ToDecimal(Label18_Day8.Text) - Convert.ToDecimal(Label18_Day7.Text));
            Label19_Day9.Text = Convert.ToString(Convert.ToDecimal(Label19_Day8.Text) - Convert.ToDecimal(Label19_Day7.Text));
            Label20_Day9.Text = Convert.ToString(Convert.ToDecimal(Label20_Day8.Text) - Convert.ToDecimal(Label20_Day7.Text));
            Label21_Day9.Text = Convert.ToString(Convert.ToDecimal(Label21_Day8.Text) - Convert.ToDecimal(Label21_Day7.Text));
            Label22_Day9.Text = Convert.ToString(Convert.ToDecimal(Label22_Day8.Text) - Convert.ToDecimal(Label22_Day7.Text));
            Label23_Day9.Text = Convert.ToString(Convert.ToDecimal(Label23_Day8.Text) - Convert.ToDecimal(Label23_Day7.Text));
            Label24_Day9.Text = Convert.ToString(Convert.ToDecimal(Label24_Day8.Text) - Convert.ToDecimal(Label24_Day7.Text));
            Label25_Day9.Text = Convert.ToString(Convert.ToDecimal(Label25_Day8.Text) - Convert.ToDecimal(Label25_Day7.Text));
            Label26_Day9.Text = Convert.ToString(Convert.ToDecimal(Label26_Day8.Text) - Convert.ToDecimal(Label26_Day7.Text));
            Label27_Day9.Text = Convert.ToString(Convert.ToDecimal(Label27_Day8.Text) - Convert.ToDecimal(Label27_Day7.Text));
            Label28_Day9.Text = Convert.ToString(Convert.ToDecimal(Label28_Day8.Text) - Convert.ToDecimal(Label28_Day7.Text));
            Label29_Day9.Text = Convert.ToString(Convert.ToDecimal(Label29_Day8.Text) - Convert.ToDecimal(Label29_Day7.Text));

            Label01_Day10.Text = Convert.ToString(Convert.ToDecimal(Label01_Day8.Text) - Convert.ToDecimal(Label01_Day6.Text));
            Label02_Day10.Text = Convert.ToString(Convert.ToDecimal(Label02_Day8.Text) - Convert.ToDecimal(Label02_Day6.Text));
            Label03_Day10.Text = Convert.ToString(Convert.ToDecimal(Label03_Day8.Text) - Convert.ToDecimal(Label03_Day6.Text));
            Label04_Day10.Text = Convert.ToString(Convert.ToDecimal(Label04_Day8.Text) - Convert.ToDecimal(Label04_Day6.Text));
            Label05_Day10.Text = Convert.ToString(Convert.ToDecimal(Label05_Day8.Text) - Convert.ToDecimal(Label05_Day6.Text));
            Label06_Day10.Text = Convert.ToString(Convert.ToDecimal(Label06_Day8.Text) - Convert.ToDecimal(Label06_Day6.Text));
            Label07_Day10.Text = Convert.ToString(Convert.ToDecimal(Label07_Day8.Text) - Convert.ToDecimal(Label07_Day6.Text));
            Label08_Day10.Text = Convert.ToString(Convert.ToDecimal(Label08_Day8.Text) - Convert.ToDecimal(Label08_Day6.Text));
            Label09_Day10.Text = Convert.ToString(Convert.ToDecimal(Label09_Day8.Text) - Convert.ToDecimal(Label09_Day6.Text));
            Label10_Day10.Text = Convert.ToString(Convert.ToDecimal(Label10_Day8.Text) - Convert.ToDecimal(Label10_Day6.Text));
            Label11_Day10.Text = Convert.ToString(Convert.ToDecimal(Label11_Day8.Text) - Convert.ToDecimal(Label11_Day6.Text));
            Label12_Day10.Text = Convert.ToString(Convert.ToDecimal(Label12_Day8.Text) - Convert.ToDecimal(Label12_Day6.Text));
            Label13_Day10.Text = Convert.ToString(Convert.ToDecimal(Label13_Day8.Text) - Convert.ToDecimal(Label13_Day6.Text));
            Label14_Day10.Text = Convert.ToString(Convert.ToDecimal(Label14_Day8.Text) - Convert.ToDecimal(Label14_Day6.Text));
            Label15_Day10.Text = Convert.ToString(Convert.ToDecimal(Label15_Day8.Text) - Convert.ToDecimal(Label15_Day6.Text));
            Label16_Day10.Text = Convert.ToString(Convert.ToDecimal(Label16_Day8.Text) - Convert.ToDecimal(Label16_Day6.Text));
            Label17_Day10.Text = Convert.ToString(Convert.ToDecimal(Label17_Day8.Text) - Convert.ToDecimal(Label17_Day6.Text));
            Label18_Day10.Text = Convert.ToString(Convert.ToDecimal(Label18_Day8.Text) - Convert.ToDecimal(Label18_Day6.Text));
            Label19_Day10.Text = Convert.ToString(Convert.ToDecimal(Label19_Day8.Text) - Convert.ToDecimal(Label19_Day6.Text));
            Label20_Day10.Text = Convert.ToString(Convert.ToDecimal(Label20_Day8.Text) - Convert.ToDecimal(Label20_Day6.Text));
            Label21_Day10.Text = Convert.ToString(Convert.ToDecimal(Label21_Day8.Text) - Convert.ToDecimal(Label21_Day6.Text));
            Label22_Day10.Text = Convert.ToString(Convert.ToDecimal(Label22_Day8.Text) - Convert.ToDecimal(Label22_Day6.Text));
            Label23_Day10.Text = Convert.ToString(Convert.ToDecimal(Label23_Day8.Text) - Convert.ToDecimal(Label23_Day6.Text));
            Label24_Day10.Text = Convert.ToString(Convert.ToDecimal(Label24_Day8.Text) - Convert.ToDecimal(Label24_Day6.Text));
            Label25_Day10.Text = Convert.ToString(Convert.ToDecimal(Label25_Day8.Text) - Convert.ToDecimal(Label25_Day6.Text));
            Label26_Day10.Text = Convert.ToString(Convert.ToDecimal(Label26_Day8.Text) - Convert.ToDecimal(Label26_Day6.Text));
            Label27_Day10.Text = Convert.ToString(Convert.ToDecimal(Label27_Day8.Text) - Convert.ToDecimal(Label27_Day6.Text));
            Label28_Day10.Text = Convert.ToString(Convert.ToDecimal(Label28_Day8.Text) - Convert.ToDecimal(Label28_Day6.Text));
            Label29_Day10.Text = Convert.ToString(Convert.ToDecimal(Label29_Day8.Text) - Convert.ToDecimal(Label29_Day6.Text));

            string StrGraph01_Day1 = "0";
            string StrGraph01_Day2 = "0";
            string StrGraph01_Day3 = "0";
            string StrGraph01_Day4 = "0";
            string StrGraph01_Day5 = "0";
            string StrGraph01_Day6 = "0";
            string StrGraph01_Day7 = "0";
            string StrGraph01_Day8 = "0";
            string StrGraph01_Day9 = "0";
            string StrGraph01_Day10 = "0";
            string StrGraph01_Day11 = "0";
            string StrGraph01_Day12 = "0";
            string StrGraph01_Day13 = "0";

            string StrGraph02_Day1 = "0";
            string StrGraph02_Day2 = "0";
            string StrGraph02_Day3 = "0";
            string StrGraph02_Day4 = "0";
            string StrGraph02_Day5 = "0";
            string StrGraph02_Day6 = "0";
            string StrGraph02_Day7 = "0";
            string StrGraph02_Day8 = "0";
            string StrGraph02_Day9 = "0";
            string StrGraph02_Day10 = "0";
            string StrGraph02_Day11 = "0";
            string StrGraph02_Day12 = "0";
            string StrGraph02_Day13 = "0";

            string StrGraph04_Day1 = "0";
            string StrGraph04_Day2 = "0";
            string StrGraph04_Day3 = "0";
            string StrGraph04_Day4 = "0";
            string StrGraph04_Day5 = "0";
            string StrGraph04_Day6 = "0";
            string StrGraph04_Day7 = "0";
            string StrGraph04_Day8 = "0";
            string StrGraph04_Day9 = "0";
            string StrGraph04_Day10 = "0";
            string StrGraph04_Day11 = "0";
            string StrGraph04_Day12 = "0";
            string StrGraph04_Day13 = "0";

            string StrGraph05_Day1 = "0";
            string StrGraph05_Day2 = "0";
            string StrGraph05_Day3 = "0";
            string StrGraph05_Day4 = "0";
            string StrGraph05_Day5 = "0";
            string StrGraph05_Day6 = "0";
            string StrGraph05_Day7 = "0";
            string StrGraph05_Day8 = "0";
            string StrGraph05_Day9 = "0";
            string StrGraph05_Day10 = "0";
            string StrGraph05_Day11 = "0";
            string StrGraph05_Day12 = "0";
            string StrGraph05_Day13 = "0";

            string StrGraph07_Day1 = "0";
            string StrGraph07_Day2 = "0";
            string StrGraph07_Day3 = "0";
            string StrGraph07_Day4 = "0";
            string StrGraph07_Day5 = "0";
            string StrGraph07_Day6 = "0";
            string StrGraph07_Day7 = "0";
            string StrGraph07_Day8 = "0";
            string StrGraph07_Day9 = "0";
            string StrGraph07_Day10 = "0";
            string StrGraph07_Day11 = "0";
            string StrGraph07_Day12 = "0";
            string StrGraph07_Day13 = "0";

            string StrGraph08_Day1 = "0";
            string StrGraph08_Day2 = "0";
            string StrGraph08_Day3 = "0";
            string StrGraph08_Day4 = "0";
            string StrGraph08_Day5 = "0";
            string StrGraph08_Day6 = "0";
            string StrGraph08_Day7 = "0";
            string StrGraph08_Day8 = "0";
            string StrGraph08_Day9 = "0";
            string StrGraph08_Day10 = "0";
            string StrGraph08_Day11 = "0";
            string StrGraph08_Day12 = "0";
            string StrGraph08_Day13 = "0";

            string StrGraph10_Day1 = "0";
            string StrGraph10_Day2 = "0";
            string StrGraph10_Day3 = "0";
            string StrGraph10_Day4 = "0";
            string StrGraph10_Day5 = "0";
            string StrGraph10_Day6 = "0";
            string StrGraph10_Day7 = "0";
            string StrGraph10_Day8 = "0";
            string StrGraph10_Day9 = "0";
            string StrGraph10_Day10 = "0";
            string StrGraph10_Day11 = "0";
            string StrGraph10_Day12 = "0";
            string StrGraph10_Day13 = "0";

            string StrGraph11_Day1 = "0";
            string StrGraph11_Day2 = "0";
            string StrGraph11_Day3 = "0";
            string StrGraph11_Day4 = "0";
            string StrGraph11_Day5 = "0";
            string StrGraph11_Day6 = "0";
            string StrGraph11_Day7 = "0";
            string StrGraph11_Day8 = "0";
            string StrGraph11_Day9 = "0";
            string StrGraph11_Day10 = "0";
            string StrGraph11_Day11 = "0";
            string StrGraph11_Day12 = "0";
            string StrGraph11_Day13 = "0";

            int q = 1;
            for (int i = m; i <= 12; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemPL = Common.BusinessService.GetItem(coCd, yearN_1, strMonth, "P_L");
                if (itemPL != null)
                {
                    string StrPL02010102 = itemPL["CM_PL02010102"].ToString();

                    switch (q.ToString())
                    {
                        case "1":
                            StrGraph07_Day1 = StrPL02010102;
                            break;
                        case "2":
                            StrGraph07_Day2 = StrPL02010102;
                            break;
                        case "3":
                            StrGraph07_Day3 = StrPL02010102;
                            break;
                        case "4":
                            StrGraph07_Day4 = StrPL02010102;
                            break;
                        case "5":
                            StrGraph07_Day5 = StrPL02010102;
                            break;
                        case "6":
                            StrGraph07_Day6 = StrPL02010102;
                            break;
                        case "7":
                            StrGraph07_Day7 = StrPL02010102;
                            break;
                        case "8":
                            StrGraph07_Day8 = StrPL02010102;
                            break;
                        case "9":
                            StrGraph07_Day9 = StrPL02010102;
                            break;
                        case "10":
                            StrGraph07_Day10 = StrPL02010102;
                            break;
                        case "11":
                            StrGraph07_Day11 = StrPL02010102;
                            break;
                        case "12":
                            StrGraph07_Day12 = StrPL02010102;
                            break;
                        default:
                            break;
                    }
                }
                q = q + 1;
            }

            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemPL = Common.BusinessService.GetItem(coCd, year, strMonth, "P_L");
                if (itemPL != null)
                {
                    string StrPL02010102 = itemPL["CM_PL02010102"].ToString();

                    switch (q.ToString())
                    {
                        case "1":
                            StrGraph07_Day1 = StrPL02010102;
                            break;
                        case "2":
                            StrGraph07_Day2 = StrPL02010102;
                            break;
                        case "3":
                            StrGraph07_Day3 = StrPL02010102;
                            break;
                        case "4":
                            StrGraph07_Day4 = StrPL02010102;
                            break;
                        case "5":
                            StrGraph07_Day5 = StrPL02010102;
                            break;
                        case "6":
                            StrGraph07_Day6 = StrPL02010102;
                            break;
                        case "7":
                            StrGraph07_Day7 = StrPL02010102;
                            break;
                        case "8":
                            StrGraph07_Day8 = StrPL02010102;
                            break;
                        case "9":
                            StrGraph07_Day9 = StrPL02010102;
                            break;
                        case "10":
                            StrGraph07_Day10 = StrPL02010102;
                            break;
                        case "11":
                            StrGraph07_Day11 = StrPL02010102;
                            break;
                        case "12":
                            StrGraph07_Day12 = StrPL02010102;
                            break;
                        case "13":
                            StrGraph07_Day13 = StrPL02010102;
                            break;
                        default:
                            break;
                    }
                }
                q = q + 1;
            }

            int z = 1;
            for (int i = m; i <= 12; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemFCCurr = Common.BusinessService.GetItem(coCd, yearN_1, strMonth, "P_L");
                if (itemFCCurr != null)
                {
                    string StrPL02010101 = itemFCCurr["CM_PL02010101-1"].ToString();

                    switch (z.ToString())
                    {
                        case "1":
                            StrGraph10_Day1 = StrPL02010101;
                            break;
                        case "2":
                            StrGraph10_Day2 = StrPL02010101;
                            break;
                        case "3":
                            StrGraph10_Day3 = StrPL02010101;
                            break;
                        case "4":
                            StrGraph10_Day4 = StrPL02010101;
                            break;
                        case "5":
                            StrGraph10_Day5 = StrPL02010101;
                            break;
                        case "6":
                            StrGraph10_Day6 = StrPL02010101;
                            break;
                        case "7":
                            StrGraph10_Day7 = StrPL02010101;
                            break;
                        case "8":
                            StrGraph10_Day8 = StrPL02010101;
                            break;
                        case "9":
                            StrGraph10_Day9 = StrPL02010101;
                            break;
                        case "10":
                            StrGraph10_Day10 = StrPL02010101;
                            break;
                        case "11":
                            StrGraph10_Day11 = StrPL02010101;
                            break;
                        case "12":
                            StrGraph10_Day12 = StrPL02010101;
                            break;
                        default:
                            break;
                    }
                }
                z = z + 1;
            }

            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemFCCurr = Common.BusinessService.GetItem(coCd, year, strMonth, "P_L");
                if (itemFCCurr != null)
                {
                    string StrPL02010101 = itemFCCurr["CM_PL02010101-1"].ToString();

                    switch (z.ToString())
                    {
                        case "1":
                            StrGraph10_Day1 = StrPL02010101;
                            break;
                        case "2":
                            StrGraph10_Day2 = StrPL02010101;
                            break;
                        case "3":
                            StrGraph10_Day3 = StrPL02010101;
                            break;
                        case "4":
                            StrGraph10_Day4 = StrPL02010101;
                            break;
                        case "5":
                            StrGraph10_Day5 = StrPL02010101;
                            break;
                        case "6":
                            StrGraph10_Day6 = StrPL02010101;
                            break;
                        case "7":
                            StrGraph10_Day7 = StrPL02010101;
                            break;
                        case "8":
                            StrGraph10_Day8 = StrPL02010101;
                            break;
                        case "9":
                            StrGraph10_Day9 = StrPL02010101;
                            break;
                        case "10":
                            StrGraph10_Day10 = StrPL02010101;
                            break;
                        case "11":
                            StrGraph10_Day11 = StrPL02010101;
                            break;
                        case "12":
                            StrGraph10_Day12 = StrPL02010101;
                            break;
                        case "13":
                            StrGraph10_Day13 = StrPL02010101;
                            break;
                        default:
                            break;
                    }
                }
                z = z + 1;
            }


            int n = m + 1;
            int g = 1;


            int b = 1;
            for (int i = m; i <= 12; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemPL = Common.BusinessService.GetItem(coCd, yearN_1, strMonth, "P_L");
                if (itemPL != null)
                {
                    string StrCM_PL02060101 = itemPL["CM_PL02060101"].ToString();
                    switch (b.ToString())
                    {
                        case "1":
                            StrGraph01_Day1 = StrCM_PL02060101;
                            break;
                        case "2":
                            StrGraph01_Day2 = StrCM_PL02060101;
                            break;
                        case "3":
                            StrGraph01_Day3 = StrCM_PL02060101;
                            break;
                        case "4":
                            StrGraph01_Day4 = StrCM_PL02060101;
                            break;
                        case "5":
                            StrGraph01_Day5 = StrCM_PL02060101;
                            break;
                        case "6":
                            StrGraph01_Day6 = StrCM_PL02060101;
                            break;
                        case "7":
                            StrGraph01_Day7 = StrCM_PL02060101;
                            break;
                        case "8":
                            StrGraph01_Day8 = StrCM_PL02060101;
                            break;
                        case "9":
                            StrGraph01_Day9 = StrCM_PL02060101;
                            break;
                        case "10":
                            StrGraph01_Day10 = StrCM_PL02060101;
                            break;
                        case "11":
                            StrGraph01_Day11 = StrCM_PL02060101;
                            break;
                        case "12":
                            StrGraph01_Day12 = StrCM_PL02060101;
                            break;
                        default:
                            break;
                    }
                }
                b = b + 1;
            }

            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemPL = Common.BusinessService.GetItem(coCd, year, strMonth, "P_L");
                if (itemPL != null)
                {
                    string StrCM_PL02060101 = itemPL["CM_PL02060101"].ToString();
                    switch (b.ToString())
                    {
                        case "1":
                            StrGraph01_Day1 = StrCM_PL02060101;
                            break;
                        case "2":
                            StrGraph01_Day2 = StrCM_PL02060101;
                            break;
                        case "3":
                            StrGraph01_Day3 = StrCM_PL02060101;
                            break;
                        case "4":
                            StrGraph01_Day4 = StrCM_PL02060101;
                            break;
                        case "5":
                            StrGraph01_Day5 = StrCM_PL02060101;
                            break;
                        case "6":
                            StrGraph01_Day6 = StrCM_PL02060101;
                            break;
                        case "7":
                            StrGraph01_Day7 = StrCM_PL02060101;
                            break;
                        case "8":
                            StrGraph01_Day8 = StrCM_PL02060101;
                            break;
                        case "9":
                            StrGraph01_Day9 = StrCM_PL02060101;
                            break;
                        case "10":
                            StrGraph01_Day10 = StrCM_PL02060101;
                            break;
                        case "11":
                            StrGraph01_Day11 = StrCM_PL02060101;
                            break;
                        case "12":
                            StrGraph01_Day12 = StrCM_PL02060101;
                            break;
                        case "13":
                            StrGraph01_Day13 = StrCM_PL02060101;
                            break;
                        default:
                            break;
                    }
                }
                b = b + 1;
            }

            int k = 1;
            for (int i = m; i <= 12; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemFCCurr = Common.BusinessService.GetItem(coCd, yearN_1, strMonth, "Gross Fixed Cost");
                if (itemFCCurr != null)
                {
                    string StrCM_FC02010000 = itemFCCurr["CM_FC02010000"].ToString();
                    switch (k.ToString())
                    {
                        case "1":
                            StrGraph04_Day1 = StrCM_FC02010000;
                            break;
                        case "2":
                            StrGraph04_Day2 = StrCM_FC02010000;
                            break;
                        case "3":
                            StrGraph04_Day3 = StrCM_FC02010000;
                            break;
                        case "4":
                            StrGraph04_Day4 = StrCM_FC02010000;
                            break;
                        case "5":
                            StrGraph04_Day5 = StrCM_FC02010000;
                            break;
                        case "6":
                            StrGraph04_Day6 = StrCM_FC02010000;
                            break;
                        case "7":
                            StrGraph04_Day7 = StrCM_FC02010000;
                            break;
                        case "8":
                            StrGraph04_Day8 = StrCM_FC02010000;
                            break;
                        case "9":
                            StrGraph04_Day9 = StrCM_FC02010000;
                            break;
                        case "10":
                            StrGraph04_Day10 = StrCM_FC02010000;
                            break;
                        case "11":
                            StrGraph04_Day11 = StrCM_FC02010000;
                            break;
                        case "12":
                            StrGraph04_Day12 = StrCM_FC02010000;
                            break;
                        default:
                            break;
                    }
                }
                k = k + 1;
            }

            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemFCCurr = Common.BusinessService.GetItem(coCd, year, strMonth, "Gross Fixed Cost");
                if (itemFCCurr != null)
                {
                    string StrCM_FC02010000 = itemFCCurr["CM_FC02010000"].ToString();
                    switch (k.ToString())
                    {
                        case "1":
                            StrGraph04_Day1 = StrCM_FC02010000;
                            break;
                        case "2":
                            StrGraph04_Day2 = StrCM_FC02010000;
                            break;
                        case "3":
                            StrGraph04_Day3 = StrCM_FC02010000;
                            break;
                        case "4":
                            StrGraph04_Day4 = StrCM_FC02010000;
                            break;
                        case "5":
                            StrGraph04_Day5 = StrCM_FC02010000;
                            break;
                        case "6":
                            StrGraph04_Day6 = StrCM_FC02010000;
                            break;
                        case "7":
                            StrGraph04_Day7 = StrCM_FC02010000;
                            break;
                        case "8":
                            StrGraph04_Day8 = StrCM_FC02010000;
                            break;
                        case "9":
                            StrGraph04_Day9 = StrCM_FC02010000;
                            break;
                        case "10":
                            StrGraph04_Day10 = StrCM_FC02010000;
                            break;
                        case "11":
                            StrGraph04_Day11 = StrCM_FC02010000;
                            break;
                        case "12":
                            StrGraph04_Day12 = StrCM_FC02010000;
                            break;
                        case "13":
                            StrGraph04_Day13 = StrCM_FC02010000;
                            break;
                        default:
                            break;
                    }
                }
                k = k + 1;
            }

            Graph01_Day1.Text = StrGraph01_Day1;
            Graph01_Day2.Text = StrGraph01_Day2;
            Graph01_Day3.Text = StrGraph01_Day3;
            Graph01_Day4.Text = StrGraph01_Day4;
            Graph01_Day5.Text = StrGraph01_Day5;
            Graph01_Day6.Text = StrGraph01_Day6;
            Graph01_Day7.Text = StrGraph01_Day7;
            Graph01_Day8.Text = StrGraph01_Day8;
            Graph01_Day9.Text = StrGraph01_Day9;
            Graph01_Day10.Text = StrGraph01_Day10;
            Graph01_Day11.Text = StrGraph01_Day11;
            Graph01_Day12.Text = StrGraph01_Day12;
            Graph01_Day13.Text = StrGraph01_Day13;

            Graph04_Day1.Text = StrGraph04_Day1;
            Graph04_Day2.Text = StrGraph04_Day2;
            Graph04_Day3.Text = StrGraph04_Day3;
            Graph04_Day4.Text = StrGraph04_Day4;
            Graph04_Day5.Text = StrGraph04_Day5;
            Graph04_Day6.Text = StrGraph04_Day6;
            Graph04_Day7.Text = StrGraph04_Day7;
            Graph04_Day8.Text = StrGraph04_Day8;
            Graph04_Day9.Text = StrGraph04_Day9;
            Graph04_Day10.Text = StrGraph04_Day10;
            Graph04_Day11.Text = StrGraph04_Day11;
            Graph04_Day12.Text = StrGraph04_Day12;
            Graph04_Day13.Text = StrGraph04_Day13;

            Graph07_Day1.Text = StrGraph07_Day1;
            Graph07_Day2.Text = StrGraph07_Day2;
            Graph07_Day3.Text = StrGraph07_Day3;
            Graph07_Day4.Text = StrGraph07_Day4;
            Graph07_Day5.Text = StrGraph07_Day5;
            Graph07_Day6.Text = StrGraph07_Day6;
            Graph07_Day7.Text = StrGraph07_Day7;
            Graph07_Day8.Text = StrGraph07_Day8;
            Graph07_Day9.Text = StrGraph07_Day9;
            Graph07_Day10.Text = StrGraph07_Day10;
            Graph07_Day11.Text = StrGraph07_Day11;
            Graph07_Day12.Text = StrGraph07_Day12;
            Graph07_Day13.Text = StrGraph07_Day13;


            var currentDateTime = DateTime.Parse(string.Format("{0}-{1}-{2}", year, month, 1)).AddMonths(-12);
            for (int i = 1; i <= 13; i++)
            {
                decimal value = Common.BusinessService.GetLast12MonthFieldValue(coCd, currentDateTime.Year, currentDateTime.Month, "P_L", "CM_PL02010102");

                var lab = this.Page.Controls.AllOfType<Label>().FirstOrDefault(p => p.ID == "Graph08_Day" + i);
                if (lab != null)
                    lab.Text = value + "";

                currentDateTime = currentDateTime.AddMonths(1);

            }

            //Graph08_Day1.Text = StrGraph08_Day1;
            //Graph08_Day2.Text = StrGraph08_Day2;
            //Graph08_Day3.Text = StrGraph08_Day3;
            //Graph08_Day4.Text = StrGraph08_Day4;
            //Graph08_Day5.Text = StrGraph08_Day5;
            //Graph08_Day6.Text = StrGraph08_Day6;
            //Graph08_Day7.Text = StrGraph08_Day7;
            //Graph08_Day8.Text = StrGraph08_Day8;
            //Graph08_Day9.Text = StrGraph08_Day9;
            //Graph08_Day10.Text = StrGraph08_Day10;
            //Graph08_Day11.Text = StrGraph08_Day11;
            //Graph08_Day12.Text = StrGraph08_Day12;
            //Graph08_Day13.Text = StrGraph08_Day13;

            Graph10_Day1.Text = StrGraph10_Day1;
            Graph10_Day2.Text = StrGraph10_Day2;
            Graph10_Day3.Text = StrGraph10_Day3;
            Graph10_Day4.Text = StrGraph10_Day4;
            Graph10_Day5.Text = StrGraph10_Day5;
            Graph10_Day6.Text = StrGraph10_Day6;
            Graph10_Day7.Text = StrGraph10_Day7;
            Graph10_Day8.Text = StrGraph10_Day8;
            Graph10_Day9.Text = StrGraph10_Day9;
            Graph10_Day10.Text = StrGraph10_Day10;
            Graph10_Day11.Text = StrGraph10_Day11;
            Graph10_Day12.Text = StrGraph10_Day12;
            Graph10_Day13.Text = StrGraph10_Day13;

            currentDateTime = DateTime.Parse(string.Format("{0}-{1}-{2}", year, month, 1)).AddMonths(-12);
            for (int i = 1; i <= 13; i++)
            {
                decimal value = Common.BusinessService.GetLast12MonthFieldValue(coCd, currentDateTime.Year, currentDateTime.Month, "P_L", "CM_PL02010101-1");

                var lab = this.Page.Controls.AllOfType<Label>().FirstOrDefault(p => p.ID == "Graph11_Day" + i);
                if (lab != null)
                    lab.Text = value + "";

                currentDateTime = currentDateTime.AddMonths(1);
            }

            //Graph11_Day1.Text = StrGraph11_Day1;
            //Graph11_Day2.Text = StrGraph11_Day2;
            //Graph11_Day3.Text = StrGraph11_Day3;
            //Graph11_Day4.Text = StrGraph11_Day4;
            //Graph11_Day5.Text = StrGraph11_Day5;
            //Graph11_Day6.Text = StrGraph11_Day6;
            //Graph11_Day7.Text = StrGraph11_Day7;
            //Graph11_Day8.Text = StrGraph11_Day8;
            //Graph11_Day9.Text = StrGraph11_Day9;
            //Graph11_Day10.Text = StrGraph11_Day10;
            //Graph11_Day11.Text = StrGraph11_Day11;
            //Graph11_Day12.Text = StrGraph11_Day12;
            //Graph11_Day13.Text = StrGraph11_Day13;


            //获取前12个月的数据

            currentDateTime = DateTime.Parse(string.Format("{0}-{1}-{2}", year, month, 1)).AddMonths(-12);
            for (int i = 1; i <= 13; i++)
            {
                decimal value = Common.BusinessService.GetLast12MonthFieldValue(coCd, currentDateTime.Year, currentDateTime.Month, "P_L", "CM_PL02060101");

                var lab = this.Page.Controls.AllOfType<Label>().FirstOrDefault(p => p.ID == "Graph02_Day" + i);
                if (lab != null)
                    lab.Text = value + "";

                currentDateTime = currentDateTime.AddMonths(1);
            }

            //Graph02_Day1.Text = StrGraph02_Day1;
            //Graph02_Day2.Text = StrGraph02_Day2;
            //Graph02_Day3.Text = StrGraph02_Day3;
            //Graph02_Day4.Text = StrGraph02_Day4;
            //Graph02_Day5.Text = StrGraph02_Day5;
            //Graph02_Day6.Text = StrGraph02_Day6;
            //Graph02_Day7.Text = StrGraph02_Day7;
            //Graph02_Day8.Text = StrGraph02_Day8;
            //Graph02_Day9.Text = StrGraph02_Day9;
            //Graph02_Day10.Text = StrGraph02_Day10;
            //Graph02_Day11.Text = StrGraph02_Day11;
            //Graph02_Day12.Text = StrGraph02_Day12;
            //Graph02_Day13.Text = StrGraph02_Day13;

            //获取前12个月的数据

            currentDateTime = DateTime.Parse(string.Format("{0}-{1}-{2}", year, month, 1)).AddMonths(-12);
            for (int i = 1; i <= 13; i++)
            {
                decimal value = Common.BusinessService.GetLast12MonthFieldValue(coCd, currentDateTime.Year, currentDateTime.Month, "Gross Fixed Cost", "CM_FC02010000");

                var lab = this.Page.Controls.AllOfType<Label>().FirstOrDefault(p => p.ID == "Graph05_Day" + i);
                if (lab != null)
                    lab.Text = value + "";

                currentDateTime = currentDateTime.AddMonths(1);
            }

            //Graph05_Day1.Text = StrGraph05_Day1;
            //Graph05_Day2.Text = StrGraph05_Day2;
            //Graph05_Day3.Text = StrGraph05_Day3;
            //Graph05_Day4.Text = StrGraph05_Day4;
            //Graph05_Day5.Text = StrGraph05_Day5;
            //Graph05_Day6.Text = StrGraph05_Day6;
            //Graph05_Day7.Text = StrGraph05_Day7;
            //Graph05_Day8.Text = StrGraph05_Day8;
            //Graph05_Day9.Text = StrGraph05_Day9;
            //Graph05_Day10.Text = StrGraph05_Day10;
            //Graph05_Day11.Text = StrGraph05_Day11;
            //Graph05_Day12.Text = StrGraph05_Day12;
            //Graph05_Day13.Text = StrGraph05_Day13;

        }

    }
}
